Source code for cellpy.exceptions

"""Exceptions defined within cellpy"""


[docs]class Error(Exception): """Base class for other exceptions""" pass
[docs]class ConfigFileNotWritten(Error): """Raised when the configuration file cannot be written""" pass
[docs]class ConfigFileNotRead(Error): """Raised when the configuration file cannot be read""" pass
[docs]class FileNotFound(Error): """Raised when the given file is not found""" pass
[docs]class WrongFileVersion(Error): """Raised when the file version is wrong""" pass
[docs]class DeprecatedFeature(Error): """Raised when the feature is recently deprecated""" pass
[docs]class ExportFailed(Error): """Raised when exporting data failed""" pass
[docs]class IOError(Error): """Raised when exporting data failed""" pass
[docs]class NullData(Error): """Raised when required data is missing (e.g. voltage = None or summary_frames are missing)""" pass
[docs]class NoDataFound(Error): """Raised when there are no cells, but a data is needed.""" pass
[docs]class UnderDefined(Error): """Raised when trying something that requires you to set a missing prm on environment variable first""" pass