Source code for abjad.exceptions

"""
Custom exceptions.
"""


[docs]class AssignabilityError(Exception): """ Duration can not be assigned to note, rest or chord. """ pass
[docs]class ImpreciseMetronomeMarkError(Exception): """ MetronomeMark is imprecise. """ pass
[docs]class LilyPondParserError(Exception): """ Can not parse input. """ pass
[docs]class MissingContextError(Exception): """ No context found. """ pass
[docs]class MissingMetronomeMarkError(Exception): """ No metronome mark found. """ pass
[docs]class ParentageError(Exception): """ A parentage error. """ pass
[docs]class PersistentIndicatorError(Exception): """ Persistent indicator already attached at same context. """ pass
[docs]class SchemeParserFinishedError(Exception): """ SchemeParser has finished parsing. """ pass
[docs]class UnboundedTimeIntervalError(Exception): """ Time interval has no bounds. """ pass
[docs]class WellformednessError(Exception): """ Score not well formed. """ pass