Source code for pygmt.exceptions
"""
Custom exception types used throughout the library.
All exceptions derive from the :class:`~gmt.exceptions.GMTError` class.
"""
[docs]class GMTCLibError(GMTError):
"""
Error encountered when running a function from the GMT shared library.
"""
[docs]class GMTCLibNoSessionError(GMTCLibError):
"""
Tried to access GMT API without a currently open GMT session.
"""
[docs]class GMTInvalidInput(GMTError):
"""
Raised when the input of a function/method is invalid.
"""
[docs]class GMTVersionError(GMTError):
"""
Raised when an incompatible version of GMT is being used.
"""