Source code for typinox.error

[docs] class TypinoxError(Exception): """Base class for all exceptions raised by Typinox.""" pass
[docs] class TypinoxAnnotationError(TypinoxError, TypeError): """Raised at annotation-time to indicate an error in the annotation.""" pass
[docs] class TypinoxInvalidTypeToCheck(TypinoxError, TypeError): """Raised when the type being checked should not be checked at run-time.""" pass
[docs] class TypinoxTypeViolation(TypinoxError, TypeError): """Raised when the typechecking failed.""" pass
[docs] class TypinoxNotImplementedError(TypinoxError, NotImplementedError): """Raised when a feature is not yet implemented.""" pass