minos.common.exceptions

Exceptions

DataDecoderException

Base data decoder exception.

DataDecoderMalformedTypeException

Exception to be raised when malformed types are provided.

DataDecoderRequiredValueException

Exception to be raised when required values are not provided.

DataDecoderTypeException

Exception to be raised when expected and provided types do not match.

EmptyMinosModelSequenceException

Exception to be raised when a sequence must be not empty, but it is empty.

MinosAttributeValidationException

Exception to be raised when some fields are not valid.

MinosBrokerException

Base broker exception

MinosConfigException

Base config exception.

MinosException

Exception class for import packages or modules

MinosHandlerException

Base handler exception

MinosImportException

MinosLockException

Base lock exception

MinosMalformedAttributeException

Exception to be raised when there are any kind of problems with the type definition.

MinosMessageException

MinosModelAttributeException

Base model attributes exception.

MinosModelException

Exception to be raised when some mandatory condition is not satisfied by a model.

MinosParseAttributeException

Exception to be raised when there are any kind of problems with the parsing logic.

MinosProtocolException

MinosReqAttributeException

Exception to be raised when some required attributes are not provided.

MinosTypeAttributeException

Exception to be raised when there are any mismatching between the expected and observed attribute type.

MultiTypeMinosModelSequenceException

Exception to be raised when a sequence doesn't satisfy the condition to have the same type for each item.

NotProvidedException

Exception to be raised when a dependency is needed but not provided.

exception MinosException[source]

Bases: Exception

Exception class for import packages or modules

__init__(error_message)[source]
Parameters

error_message (str) –

__new__(**kwargs)
args
with_traceback()

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

exception NotProvidedException[source]

Bases: MinosException

Exception to be raised when a dependency is needed but not provided.

__init__(error_message)
Parameters

error_message (str) –

__new__(**kwargs)
args
with_traceback()

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

exception MinosImportException[source]

Bases: MinosException

__init__(error_message)
Parameters

error_message (str) –

__new__(**kwargs)
args
with_traceback()

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

exception MinosProtocolException[source]

Bases: MinosException

__init__(error_message)
Parameters

error_message (str) –

__new__(**kwargs)
args
with_traceback()

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

exception MinosMessageException[source]

Bases: MinosException

__init__(error_message)
Parameters

error_message (str) –

__new__(**kwargs)
args
with_traceback()

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

exception MinosConfigException[source]

Bases: MinosException

Base config exception.

__init__(error_message)
Parameters

error_message (str) –

__new__(**kwargs)
args
with_traceback()

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

exception MinosBrokerException[source]

Bases: MinosException

Base broker exception

__init__(error_message)
Parameters

error_message (str) –

__new__(**kwargs)
args
with_traceback()

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

exception MinosHandlerException[source]

Bases: MinosException

Base handler exception

__init__(error_message)
Parameters

error_message (str) –

__new__(**kwargs)
args
with_traceback()

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

exception MinosLockException[source]

Bases: MinosException

Base lock exception

__init__(error_message)
Parameters

error_message (str) –

__new__(**kwargs)
args
with_traceback()

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

exception MinosModelException[source]

Bases: MinosException

Exception to be raised when some mandatory condition is not satisfied by a model.

__init__(error_message)
Parameters

error_message (str) –

__new__(**kwargs)
args
with_traceback()

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

exception EmptyMinosModelSequenceException[source]

Bases: MinosModelException

Exception to be raised when a sequence must be not empty, but it is empty.

__init__(error_message)
Parameters

error_message (str) –

__new__(**kwargs)
args
with_traceback()

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

exception MultiTypeMinosModelSequenceException[source]

Bases: MinosModelException

Exception to be raised when a sequence doesn’t satisfy the condition to have the same type for each item.

__init__(error_message)
Parameters

error_message (str) –

__new__(**kwargs)
args
with_traceback()

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

exception MinosModelAttributeException[source]

Bases: MinosException

Base model attributes exception.

__init__(error_message)
Parameters

error_message (str) –

__new__(**kwargs)
args
with_traceback()

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

exception MinosReqAttributeException[source]

Bases: MinosModelAttributeException

Exception to be raised when some required attributes are not provided.

__init__(error_message)
Parameters

error_message (str) –

__new__(**kwargs)
args
with_traceback()

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

exception MinosTypeAttributeException[source]

Bases: MinosModelAttributeException

Exception to be raised when there are any mismatching between the expected and observed attribute type.

__init__(name, target_type, value)[source]
Parameters
  • name (str) –

  • target_type (Type) –

  • value (Any) –

__new__(**kwargs)
args
with_traceback()

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

exception MinosMalformedAttributeException[source]

Bases: MinosModelAttributeException

Exception to be raised when there are any kind of problems with the type definition.

__init__(error_message)
Parameters

error_message (str) –

__new__(**kwargs)
args
with_traceback()

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

exception MinosParseAttributeException[source]

Bases: MinosModelAttributeException

Exception to be raised when there are any kind of problems with the parsing logic.

__init__(name, value, exception)[source]
Parameters
__new__(**kwargs)
args
with_traceback()

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

exception MinosAttributeValidationException[source]

Bases: MinosModelAttributeException

Exception to be raised when some fields are not valid.

__init__(name, value)[source]
Parameters
  • name (str) –

  • value (Any) –

__new__(**kwargs)
args
with_traceback()

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

exception DataDecoderException[source]

Bases: MinosModelException

Base data decoder exception.

__init__(error_message)
Parameters

error_message (str) –

__new__(**kwargs)
args
with_traceback()

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

exception DataDecoderMalformedTypeException[source]

Bases: DataDecoderException

Exception to be raised when malformed types are provided.

__init__(error_message)
Parameters

error_message (str) –

__new__(**kwargs)
args
with_traceback()

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

exception DataDecoderRequiredValueException[source]

Bases: DataDecoderException

Exception to be raised when required values are not provided.

__init__(error_message)
Parameters

error_message (str) –

__new__(**kwargs)
args
with_traceback()

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

exception DataDecoderTypeException[source]

Bases: DataDecoderException

Exception to be raised when expected and provided types do not match.

__init__(target_type, value)[source]
Parameters
  • target_type (Type) –

  • value (Any) –

__new__(**kwargs)
args
with_traceback()

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