Source code for pycmor.std_lib.exceptions

"""
This module contains custom exceptions that you should raise when something specific
goes wrong in the standard library.
"""

# NOTE(PG): I am not sure what is better; to have this here, or to have each exception next to the step code...


[docs] class PycmorError(Exception): """Base class for all errors raised by pycmor."""
[docs] class PycmorResamplingError(PycmorError): """Error raised when resampling fails."""
[docs] class PycmorResamplingTimeAxisIncompatibilityError(PycmorResamplingError, ValueError): """Error raised when resampling fails due to time axis incompatibility."""