Source code for pygaps.utilities.exceptions

"""Custom errors thrown by the program."""


[docs]class pgError(Exception): """Base error raised by pyGAPS."""
[docs]class ParameterError(pgError): """Raised when one of the parameters is unsuitable."""
[docs]class CalculationError(pgError): """Raised when a calculation fails."""
[docs]class ParsingError(pgError): """Raised when parsing fails."""
[docs]class GraphingError(pgError): """Raised when graphing fails."""