trepr.exceptions module

Exceptions for the trepr package.

For preventing cyclic imports and for a better overview, all exception classes of the trepr package are collected in this module. It is save for every other module to import this module, as this module does not depend on any other modules.

exception trepr.exceptions.Error

Bases: Exception

Base class for exceptions in this module.

exception trepr.exceptions.DimensionError(message='')

Bases: trepr.exceptions.Error

Exception raised when the dimension of the data does not fit.

message

explanation of the error

Type

str

exception trepr.exceptions.RangeError(message='')

Bases: trepr.exceptions.Error

Exception raised when the given range is out of the dataset’s range.

message

explanation of the error

Type

str

exception trepr.exceptions.UnitError(message='')

Bases: trepr.exceptions.Error

Exception raised when the unit does not fit.

message

explanation of the error

Type

str