obsplus.exceptions module

A collection of ObsPlus Exceptions and Warnings.

exception obsplus.exceptions.AmbiguousResponseError[source]

Bases: ValueError

Raised when trying to get a response for an inventory but more than one response meets the criteria.

exception obsplus.exceptions.BankDoesNotExistError[source]

Bases: FileNotFoundError

Exception raised when the bank directory does not exist.

exception obsplus.exceptions.DataFrameContentError[source]

Bases: ValueError

Raised when something is unexpected in a dataframe’s contents.

exception obsplus.exceptions.DataVersionError[source]

Bases: ValueError

Raised when the version of a dataset doesn’t match what is expected.

exception obsplus.exceptions.FileHashChangedError[source]

Bases: ValueError

Raised when the expected md5 hash of a file has changed.

exception obsplus.exceptions.MissingDataFileError[source]

Bases: FileNotFoundError

Raised when the expected md5 hash of a file has changed.

exception obsplus.exceptions.TimeOverflowWarning[source]

Bases: UserWarning

Displayed when a large time value is cast into a 64bit ns time stamp.

exception obsplus.exceptions.UnsupportedKeyword[source]

Bases: TypeError

Raised when ObsPlus encounters an unexpected keyword.

exception obsplus.exceptions.ValidationError[source]

Bases: ValueError

Raised when something goes wrong with object validation.

exception obsplus.exceptions.ValidationNameError[source]

Bases: ValidationError, KeyError

Raised when a namespace with no validators is used.