cwepr.exceptions module

Exceptions for the cwepr package.

For preventing cyclic imports and for a better overview, all exception classes of the cwepr 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 cwepr.exceptions.Error

Bases: Exception

Base class for exceptions in this module.

exception cwepr.exceptions.UnsupportedDataFormatError(message='')

Bases: cwepr.exceptions.Error

Exception raised when data format is not supported.

message

explanation of the error

Type

str

exception cwepr.exceptions.MissingPathError(message='')

Bases: cwepr.exceptions.Error

Exception raised when no path is provided.

message

explanation of the error

Type

str

exception cwepr.exceptions.MissingInfoFileError(message='')

Bases: cwepr.exceptions.Error

Exception raised when no user created info file is found.

message

explanation of the error

Type

str

exception cwepr.exceptions.ExperimentTypeError(message='')

Bases: cwepr.exceptions.Error

Exception raised in case of problems with designated experiment type.

This includes two cases: 1) the data provided do not correspond to a cw experiment 2) the experiment type cannot be determined.

message

explanation of the error

Type

str

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

Bases: cwepr.exceptions.Error

Exception indicating error in the dimension of an object.

message

explanation of the error

Type

str

exception cwepr.exceptions.MissingInformationError(message='')

Bases: cwepr.exceptions.Error

Exception raised when not enough information is provided.

exception cwepr.exceptions.UnequalUnitsError(message='')

Bases: cwepr.exceptions.Error

Exception raised when addends have unequal units.

This is relevant when two physical quantities that shall be added or subtracted do not have the same unit.

message

explanation of the error

Type

str

exception cwepr.exceptions.RecipeNotFoundError(message='')

Bases: cwepr.exceptions.Error

Exception raised when a recipe could not be found.

message

explanation of the error

Type

str