Source code for pyasdf.exceptions

#!/usr/bin/env python
"""
:copyright:
    Lion Krischer (lion.krischer@gmail.com), 2013-2021
:license:
    BSD 3-Clause ("BSD New" or "BSD Simplified")
"""


[docs]class ASDFException(Exception): """ Generic exception for the Python ASDF implementation. """ pass
[docs]class WaveformNotInFileException(ASDFException): """ Raised when a non-existent waveform is accessed. """ pass
[docs]class NoStationXMLForStation(ASDFException): """ Raised when a station has no associated StationXML file. """ pass
[docs]class ASDFValueError(ASDFException, ValueError): """ ASDF specific value error. """ pass
[docs]class ASDFAttributeError(ASDFException, AttributeError): """ ASDF specific attribute error. """ pass
[docs]class ASDFWarning(UserWarning): """ Generic ASDF warning. """ pass