server.web.server_side_exception

Exceptions only used on the Server Side.

Exceptions

ServerSideException

Used for all exceptions on the server side.

InvalidUsage

Error caused by client mistakes (ex. bad data provided).

ServerError

Use for Internal Server Error.

Module Contents

exception server.web.server_side_exception.ServerSideException(msg: str)[source]

Bases: Exception

Used for all exceptions on the server side.

msg[source]
__str__() str[source]

Return a printable representational string of the message.

exception server.web.server_side_exception.InvalidUsage(msg: str, status_code: int | None = None, payload: tuple | None = None)[source]

Bases: ServerSideException

Error caused by client mistakes (ex. bad data provided).

status_code[source]
payload[source]
to_dict() Dict[source]

Put exception in a dictionary.

exception server.web.server_side_exception.ServerError(msg: str, status_code: int | None = None, payload: tuple | None = None)[source]

Bases: ServerSideException

Use for Internal Server Error.

status_code[source]
payload[source]
to_dict() Dict[source]

Return payload and message as dictionary.