rest_framework_dso.exceptions module

Additional exception classes

exception rest_framework_dso.exceptions.BadGateway(detail=None, code=None)

Render an HTTP 502 Bad Gateway.

exception rest_framework_dso.exceptions.GatewayTimeout(detail=None, code=None)

Render an HTTP 504 Gateway Timeout.

exception rest_framework_dso.exceptions.HumanReadableException(detail=None, code=None)

Base class for tagging exceptions that can be shown in complete detail to the client. This can be shown in the standard exception handler, or during streaming rendering.

exception rest_framework_dso.exceptions.HumanReadableGDALException(detail=None, code=None)

Tell that rendering failed due to conversion errors

exception rest_framework_dso.exceptions.PreconditionFailed(detail=None, code=None)

Render an HTTP 412 Precondition Failed.

exception rest_framework_dso.exceptions.RemoteAPIException(title, detail, code, status_code)

Indicate that a call to a remote endpoint failed.

__init__(title, detail, code, status_code)
exception rest_framework_dso.exceptions.ServiceUnavailable(detail=None, code=None)

Render an HTTP 503 Service Unavailable.