exceptions module

ApiAttributeError

class edgeimpulse_api.exceptions.ApiAttributeError(
		msg,
		path_to_item=None
)

The base exception class for all OpenAPIExceptions

Raised when an attribute reference or assignment fails.

Parameters

  • msg

  • path_to_item=None

Bases

  • edgeimpulse_api.exceptions.OpenApiException

  • builtins.AttributeError

  • builtins.Exception

  • builtins.BaseException

ApiException

class edgeimpulse_api.exceptions.ApiException(
		status=None,
		reason=None,
		http_resp=None
)

The base exception class for all OpenAPIExceptions

Parameters

  • status=None

  • reason=None

  • http_resp=None

Bases

  • edgeimpulse_api.exceptions.OpenApiException

  • builtins.Exception

  • builtins.BaseException

Subclasses

  • edgeimpulse_api.exceptions.ForbiddenException

  • edgeimpulse_api.exceptions.NotFoundException

  • edgeimpulse_api.exceptions.ServiceException

  • edgeimpulse_api.exceptions.UnauthorizedException

ApiKeyError

class edgeimpulse_api.exceptions.ApiKeyError(
		msg,
		path_to_item=None
)

The base exception class for all OpenAPIExceptions

Parameters

  • msg

  • path_to_item=None

Bases

  • edgeimpulse_api.exceptions.OpenApiException

  • builtins.KeyError

  • builtins.LookupError

  • builtins.Exception

  • builtins.BaseException

ApiTypeError

class edgeimpulse_api.exceptions.ApiTypeError(
		msg,
		path_to_item=None,
		valid_classes=None,
		key_type=None
)

The base exception class for all OpenAPIExceptions

Raises an exception for TypeErrors

Parameters

  • msg

  • path_to_item=None

  • valid_classes=None

  • key_type=None

Bases

  • edgeimpulse_api.exceptions.OpenApiException

  • builtins.TypeError

  • builtins.Exception

  • builtins.BaseException