dcc_quantities.exceptions

Encapsulation of all new error classes defined within the package.

The encapsulation allows the direct import of the errors at other packages as following:

from dcc_quantities import exceptions

raise exceptions.SiMathError(...)

UnitError

Bases: ValueError

Invalid units were given to a function. E.G.: sin('\metre').

NumericDomainError

Bases: ValueError

Provided value is outside the domain for a trigonometric function.

SiMathError

Bases: ValueError

Error raised when invalid math is detected at SI classes.