errors

errors

Exceptions and warnings raised by OpenMusicKit.

Every OMK-specific exception derives from OmkError, so a caller can catch the whole family at once; the domain subclasses exist for callers that need to tell the failures apart (for example, to fall back to another strategy).

Classes

Name Description
OmkError Base class for exceptions raised by OpenMusicKit.
OmkWarning Base class for warnings issued by OpenMusicKit.
TemporalError Base class for temporal system errors.
ScalingError Raised when a Measurable cannot perform the requested scaling operation.
TemporalCompatibilityError Raised when temporal elements from incompatible systems are combined.
LyricConsistencyError Raised when lyric data is not self consistent.
GraphError Raised by the graph layer for a missing node or edge, or a relationship the
RenderingError Raised when rendering a visualization fails: Graphviz’s dot is
GraphvizNotFoundError Raised when the Graphviz dot executable is not on the PATH.
MusicXmlError Raised when a file cannot be read as MusicXML at all: not XML, not a
OmkJsonError Raised when a document cannot be read as OMK JSON:
UnexportableError Raised when a graph cannot be written in a format at all: there is no