scuq.qexceptions

exception scuq.qexceptions.QuantitiesException(*args)[source]

Bases: Exception

General class for qexceptions of this module.

__init__(*args)[source]

Default constructor.

args: Arguments of this exception

exception scuq.qexceptions.UnitExistsException(unit, *args)[source]

Bases: QuantitiesException

Raised when a unit or dimension symbol is already registered.

__init__(unit, *args)[source]

Default constructor.

unit: The unit that raised this exception. args: Additional arguments of this exception.

__str__()[source]

Returns a string describing this exception. :returns: A string that describes this exception.

exception scuq.qexceptions.ConversionException(unit, *args)[source]

Bases: QuantitiesException

General exception that is raised whenever a unit conversion fails.

__init__(unit, *args)[source]

Default constructor

unit: Instance of a unit that raised the exception. args: Additional arguments of this exception.

__str__()[source]

Returns a string describing this exception. :returns: A string that describes the exception.

exception scuq.qexceptions.NotDimensionlessException(unit, *args)[source]

Bases: QuantitiesException

Exception that is raised whenever a a unit is not dimensionless where it has to be.

__init__(unit, *args)[source]

Default constructor

unit: Instance of a unit that raised the exception. args: Additional arguments of this exception.

__str__()[source]

Returns a string describing this exception. :returns: A string that describes the exception.

exception scuq.qexceptions.UnknownUnitException(unit, *args)[source]

Bases: QuantitiesException

An exception that is raised whenever an unexpected unit was used.

__init__(unit, *args)[source]

The default constructor. unit: An instance of a unit that is unknown. args: Additional arguments of this exception.

__str__()[source]

Returns a string describing this exception. :returns: String that describes the exception.