Exceptions

Errors generate by mod.io and the library.

exception modio.errors.modioException(text, code=None, ref=None, errors=None)[source]

Base exception for the lib

code

The status code if this error was raised from a request

Type:Optional[int]
ref

The ref error code provided by mod.io

Type:Optiona[int]
text

The unformatted text of the error

Type:str
errors

The validation errors if any exist

Type:Optional[dict]
args
with_traceback()

Exception.with_traceback(tb) – set self.__traceback__ to tb and return self.