Source code for tesliper.exceptions

"""Project-specific errors."""


[docs]class TesliperError(Exception): """Base class for Exceptions used by tesliper library.""" pass
[docs]class InconsistentDataError(TesliperError): """Raised to signalize problems with conformers' data consistency. Subclasses TesliperError.""" pass
[docs]class InvalidStateError(TesliperError, ValueError): """Used by ParserBase class to signalize problems when handling states. Subclasses TesliperError and ValueError.""" pass
[docs]class InvalidElementError(TesliperError, ValueError): """Used by tesliper to indicate, that value cannot be interpreted as an element. Subclasses TesliperError and ValueError.""" pass