Exceptions¶
Custom exception and warning classes used by the library.
exceptions
¶
Exception hierarchy for the tunas library.
TunasError
¶
Bases: Exception
Base exception for all tunas library errors.
ParseError
¶
ParseError(warning: ParseWarning)
Bases: TunasError
Raised on a fatal structural violation, or on warnings in strict mode.
Attributes:
| Name | Type | Description |
|---|---|---|
warning |
The originating ParseWarning that triggered this error. |
Source code in src/tunas/exceptions.py
StandardsError
¶
Bases: TunasError
Raised when bundled time-standards data is missing or inconsistent.