You're reading the documentation for a development version. For the latest released version, please have a look at v0.5.

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: Error

Exception raised when data format is not supported.

message

explanation of the error

Type:

str

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

Bases: Error

Exception raised when no path is provided.

message

explanation of the error

Type:

str

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

Bases: Error

Exception raised when no user created info file is found.

message

explanation of the error

Type:

str

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

Bases: 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: Error

Exception indicating error in the dimension of an object.

message

explanation of the error

Type:

str

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

Bases: Error

Exception raised when not enough information is provided.

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

Bases: 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: Error

Exception raised when a recipe could not be found.

message

explanation of the error

Type:

str