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

ApiValueError

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

The base exception class for all OpenAPIExceptions

Parameters

  • msg

  • path_to_item=None

Bases

  • edgeimpulse_api.exceptions.OpenApiException

  • builtins.ValueError

  • builtins.Exception

  • builtins.BaseException

ForbiddenException

class edgeimpulse_api.exceptions.ForbiddenException(
		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.ApiException

  • edgeimpulse_api.exceptions.OpenApiException

  • builtins.Exception

  • builtins.BaseException

NotFoundException

class edgeimpulse_api.exceptions.NotFoundException(
		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.ApiException

  • edgeimpulse_api.exceptions.OpenApiException

  • builtins.Exception

  • builtins.BaseException

OpenApiException

class edgeimpulse_api.exceptions.OpenApiException(
		*args,
		**kwargs
)

The base exception class for all OpenAPIExceptions

Parameters

  • *args

  • **kwargs

Bases

  • builtins.Exception

  • builtins.BaseException

Subclasses

  • edgeimpulse_api.exceptions.ApiAttributeError

  • edgeimpulse_api.exceptions.ApiException

  • edgeimpulse_api.exceptions.ApiKeyError

  • edgeimpulse_api.exceptions.ApiTypeError

  • edgeimpulse_api.exceptions.ApiValueError

ServiceException

class edgeimpulse_api.exceptions.ServiceException(
		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.ApiException

  • edgeimpulse_api.exceptions.OpenApiException

  • builtins.Exception

  • builtins.BaseException

UnauthorizedException

class edgeimpulse_api.exceptions.UnauthorizedException(
		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.ApiException

  • edgeimpulse_api.exceptions.OpenApiException

  • builtins.Exception

  • builtins.BaseException

render_path

edgeimpulse_api.exceptions.render_path(
		path_to_item
)

Returns a string representation of a path

Parameters

  • path_to_item

Last updated