exceptions

Exception classes.

Module Contents

Functions

handle_client_exceptions(func)

Decorator to handle client exceptions.

handle_exceptions(func)

Decorator to handle server exceptions.

exception exceptions.BadRequest(message='Bad request.')

Bases: CustomHTTPException

digraph inheritance53204a34ab { bgcolor=transparent; rankdir=LR; size="8.0, 12.0"; "BadRequest" [URL="#exceptions.BadRequest",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5),filled",target="_top",tooltip="Class that all Bad request exceptions must inherit in order for"]; "CustomHTTPException" -> "BadRequest" [arrowsize=0.5,style="setlinewidth(0.5)"]; "CustomHTTPException" [URL="#exceptions.CustomHTTPException",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5),filled",target="_top",tooltip="Class that all custom HTTP exceptions must inherit in order for"]; }

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

exception exceptions.ClientNotDefinedError(client_name, exception)

Bases: CustomHTTPException

digraph inheritance688ac67d45 { bgcolor=transparent; rankdir=LR; size="8.0, 12.0"; "ClientNotDefinedError" [URL="#exceptions.ClientNotDefinedError",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5),filled",target="_top",tooltip="Class that all ClientNotDefined exceptions must inherit in order for"]; "CustomHTTPException" -> "ClientNotDefinedError" [arrowsize=0.5,style="setlinewidth(0.5)"]; "CustomHTTPException" [URL="#exceptions.CustomHTTPException",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5),filled",target="_top",tooltip="Class that all custom HTTP exceptions must inherit in order for"]; }

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

exception exceptions.ClientTokenError(client_name, exception)

Bases: CustomHTTPException

digraph inheritance8f2647db63 { bgcolor=transparent; rankdir=LR; size="8.0, 12.0"; "ClientTokenError" [URL="#exceptions.ClientTokenError",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5),filled",target="_top",tooltip="Class that all ClientTokenError exceptions must inherit in order for"]; "CustomHTTPException" -> "ClientTokenError" [arrowsize=0.5,style="setlinewidth(0.5)"]; "CustomHTTPException" [URL="#exceptions.CustomHTTPException",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5),filled",target="_top",tooltip="Class that all custom HTTP exceptions must inherit in order for"]; }

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

exception exceptions.CustomException(message)

Bases: Exception

digraph inheritancebe56386468 { bgcolor=transparent; rankdir=LR; size="8.0, 12.0"; "CustomException" [URL="#exceptions.CustomException",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5),filled",target="_top",tooltip="Class that all custom exceptions must inherit in order for"]; }

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

exception exceptions.CustomHTTPException(message, http_error_status=status.HTTP_500_INTERNAL_SERVER_ERROR)

Bases: Exception

digraph inheritanceb1ce2f1a78 { bgcolor=transparent; rankdir=LR; size="8.0, 12.0"; "CustomHTTPException" [URL="#exceptions.CustomHTTPException",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5),filled",target="_top",tooltip="Class that all custom HTTP exceptions must inherit in order for"]; }

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

exception exceptions.FlowNotImplementedError(message='This functionality is not implemented yet.')

Bases: CustomHTTPException

digraph inheritance06e62742ef { bgcolor=transparent; rankdir=LR; size="8.0, 12.0"; "CustomHTTPException" [URL="#exceptions.CustomHTTPException",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5),filled",target="_top",tooltip="Class that all custom HTTP exceptions must inherit in order for"]; "FlowNotImplementedError" [URL="#exceptions.FlowNotImplementedError",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5),filled",target="_top",tooltip="Class that all Not implemented exceptions must inherit in order for"]; "CustomHTTPException" -> "FlowNotImplementedError" [arrowsize=0.5,style="setlinewidth(0.5)"]; }

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

exception exceptions.IAMEndpointNotFoundInWellKnown(endpoint)

Bases: CustomException

digraph inheritanceb132d2aa7e { bgcolor=transparent; rankdir=LR; size="8.0, 12.0"; "CustomException" [URL="#exceptions.CustomException",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5),filled",target="_top",tooltip="Class that all custom exceptions must inherit in order for"]; "IAMEndpointNotFoundInWellKnown" [URL="#exceptions.IAMEndpointNotFoundInWellKnown",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5),filled",target="_top",tooltip="Class that all IAMEndPoint custom exceptions must inherit in order for"]; "CustomException" -> "IAMEndpointNotFoundInWellKnown" [arrowsize=0.5,style="setlinewidth(0.5)"]; }

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

exception exceptions.InternalServerError(message='An internal server error occurred.')

Bases: CustomHTTPException

digraph inheritance2471aad4a3 { bgcolor=transparent; rankdir=LR; size="8.0, 12.0"; "CustomHTTPException" [URL="#exceptions.CustomHTTPException",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5),filled",target="_top",tooltip="Class that all custom HTTP exceptions must inherit in order for"]; "InternalServerError" [URL="#exceptions.InternalServerError",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5),filled",target="_top",tooltip="Class that all Internal server error exceptions must inherit in order for"]; "CustomHTTPException" -> "InternalServerError" [arrowsize=0.5,style="setlinewidth(0.5)"]; }

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

exception exceptions.PermissionDenied

Bases: CustomHTTPException

digraph inheritanceb3d81af646 { bgcolor=transparent; rankdir=LR; size="8.0, 12.0"; "CustomHTTPException" [URL="#exceptions.CustomHTTPException",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5),filled",target="_top",tooltip="Class that all custom HTTP exceptions must inherit in order for"]; "PermissionDenied" [URL="#exceptions.PermissionDenied",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5),filled",target="_top",tooltip="Class that all Permission denied exceptions must inherit in order for"]; "CustomHTTPException" -> "PermissionDenied" [arrowsize=0.5,style="setlinewidth(0.5)"]; }

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

exception exceptions.ResourceNotFoundError(resource_name=None, message=None)

Bases: CustomHTTPException

digraph inheritance49d7563656 { bgcolor=transparent; rankdir=LR; size="8.0, 12.0"; "CustomHTTPException" [URL="#exceptions.CustomHTTPException",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5),filled",target="_top",tooltip="Class that all custom HTTP exceptions must inherit in order for"]; "ResourceNotFoundError" [URL="#exceptions.ResourceNotFoundError",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5),filled",target="_top",tooltip="Class that all Resource not found exceptions must inherit in order for"]; "CustomHTTPException" -> "ResourceNotFoundError" [arrowsize=0.5,style="setlinewidth(0.5)"]; }

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

exceptions.handle_client_exceptions(func)

Decorator to handle client exceptions.

exceptions.handle_exceptions(func)

Decorator to handle server exceptions.