Source code for pyrocko.squirrel.error
# http://pyrocko.org - GPLv3
#
# The Pyrocko Developers, 21st Century
# ---|P------/S----------~Lg----------
'''
Squirrel exception definitions.
'''
[docs]class SquirrelError(Exception):
'''
Base class for errors raised by the Pyrocko Squirrel framework.
'''
pass
[docs]class NotAvailable(SquirrelError):
'''
Raised when a required data entity cannot be found.
'''
pass
[docs]class Duplicate(SquirrelError):
'''
Raised when a query leads to multiple/ambiguous results.
'''
pass
[docs]class Inconsistencies(SquirrelError):
'''
Raised when there is an inconsistency between two or more related entities.
'''
pass
[docs]class ConversionError(SquirrelError):
'''
Raised when a conversion failed.
'''
pass
__all__ = [
'SquirrelError',
'NotAvailable',
'Duplicate',
'Inconsistencies',
'ConversionError',
'ToolError']