station_control_errors

station_control_errors#

Errors used in the station control client-server communication.

Full path: exa.common.errors.station_control_errors

Functions

map_from_error_to_status_code(error)

Map a StationControlError to an HTTPStatus code.

map_from_status_code_to_error(status_code)

Map an HTTPStatus code to a StationControlError.

Exceptions

BadGatewayError(message, *args)

Error raised when there are invalid responses from another server/proxy.

BadRequestError(message, *args)

Error raised when the request syntax is invalid or the method is unsupported in general.

ConflictError(message, *args)

This error happens when there is a conflict with the current state of the resource.

ForbiddenError(message, *args)

Error raised when the operation is forbidden for the user.

GatewayTimeoutError(message, *args)

Error raised when the gateway server did not receive a timely response.

InternalServerError(message, *args)

Error raised when an unexpected error happened on the server side.

NotFoundError(message, *args)

Error raised when nothing was found with the given parameters.

ServiceUnavailableError(message, *args)

Error raised when the service is unavailable.

StationControlError(message, *args)

Base class for station control errors.

UnauthorizedError(message, *args)

Error raised when the user is not authorized.

ValidationError(message, *args)

Error raised when something is unprocessable in general, for example if the input value is not acceptable.