mangoes.utils.exceptions module¶
Set of Mangoes’s Exceptions
-
exception
mangoes.utils.exceptions.
MangoesError
(msg, original_exception=None)¶ Bases:
Exception
Basic exception for errors raised by mangoes
-
exception
mangoes.utils.exceptions.
NotAllowedValue
(value=None, allowed_values=None, msg=None)¶ Bases:
mangoes.utils.exceptions.MangoesError
,ValueError
Raise when a value is not allowed
-
exception
mangoes.utils.exceptions.
IncompatibleValue
(msg, original_exception=None)¶ Bases:
mangoes.utils.exceptions.MangoesError
,ValueError
Raise when 2 values are not compatible
-
exception
mangoes.utils.exceptions.
UnsupportedType
(msg, original_exception=None)¶ Bases:
mangoes.utils.exceptions.MangoesError
,TypeError
Raise when the type of an argument is not supported
-
exception
mangoes.utils.exceptions.
ResourceNotFound
(path=None, msg=None)¶ Bases:
mangoes.utils.exceptions.MangoesError
,FileNotFoundError
Raise when an expected resource is not found on a given path
-
exception
mangoes.utils.exceptions.
RequiredValue
(msg, original_exception=None)¶ Bases:
mangoes.utils.exceptions.MangoesError
Raise when a required argument is empty
-
exception
mangoes.utils.exceptions.
RuntimeError
(msg, original_exception=None)¶ Bases:
mangoes.utils.exceptions.MangoesError
,RuntimeError
Raised when an error is detected that doesn’t fall in any of the other categories. The associated value is a string indicating what precisely went wrong.
-
exception
mangoes.utils.exceptions.
OutOfVocabulary
(value=None, msg=None)¶ Bases:
mangoes.utils.exceptions.MangoesError
,ValueError
Raise when a word is not in a vocabulary