src.ska_src_api_accounting.common.exceptions

Exception classes.

Module Contents

Functions

handle_client_exceptions(func)

Decorator to handle client exceptions.

handle_exceptions(func)

Decorator to handle server exceptions.

exception src.ska_src_api_accounting.common.exceptions.ClientNotDefinedError(client_name, exception)

Bases: CustomHTTPException

Class that all ClientNotDefined exceptions must inherit in order for exception to be caught by the handle_exceptions decorator.

exception src.ska_src_api_accounting.common.exceptions.ClientTokenError(client_name, exception)

Bases: CustomHTTPException

Class that all ClientTokenError exceptions must inherit in order for exception to be caught by the handle_exceptions decorator.

exception src.ska_src_api_accounting.common.exceptions.CustomException(message)

Bases: Exception

Class that all custom exceptions must inherit in order for exception to be caught by the handle_exceptions decorator.

exception src.ska_src_api_accounting.common.exceptions.CustomHTTPException(message)

Bases: Exception

Class that all custom HTTP exceptions must inherit in order for exception to be caught by the handle_exceptions decorator.

exception src.ska_src_api_accounting.common.exceptions.IAMEndpointNotFoundInWellKnown(endpoint)

Bases: CustomException

Class that all IAMEndPoint custom exceptions must inherit in order for exception to be caught by the handle_exceptions decorator.

exception src.ska_src_api_accounting.common.exceptions.PermissionDenied

Bases: CustomHTTPException

Class that all Permission denied exceptions must inherit in order for exception to be caught by the handle_exceptions decorator.

src.ska_src_api_accounting.common.exceptions.handle_client_exceptions(func)

Decorator to handle client exceptions.

src.ska_src_api_accounting.common.exceptions.handle_exceptions(func)

Decorator to handle server exceptions.