brown.utils.exceptions

All custom exceptions used throughout brown.

classes

permalink view source

MusicFontMetadataNotFoundError (Exception)

Exception raised when metadata for a music font can't be found.

permalink view source

MusicFontGlyphNotFoundError (Exception)

Exception raised when a glyph cannot be found in a MusicFont

permalink view source

NoClefError (Exception)

Exception raised when no clef is present in a Staff where needed

permalink view source

OutOfBoundsError (Exception)

Exception raised when a point lies outside of a Flowable

permalink view source

NoAncestorStaffError (Exception)

Exception raised when a StaffObject does not have an ancestor Staff

permalink view source

InvalidAccidentalTypeError (Exception)

Raised when a nonexistent AccidentalType enum name is requested.

permalink view source

DynamicStringError (Exception)

Exception raised when a dynamic string cannot be parsed.

permalink view source

NoFlagNeededError (Exception)

Exception raised when a Flag is created with a non-flaggable duration

permalink view source

FontRegistrationError (Exception)

Exception raised when a font is loaded from disk unsuccessfully.

__init__ (font_file_path, detail=None) permalink view source

arguments:

font_file_path (str): The path to the font file which could not be registered.

detail (str): Optional error details.

permalink view source

UnknownFontFamilyError (Exception)

Exception raised when an invalid font name is passed to a FontInterface.

permalink view source

ColorBoundsError (Exception)

Exception raised when a color channel is set out of bounds

permalink view source

InvalidIntervalError (Exception)

An exception raised when an invalid interval specifier is used.

permalink view source

InvalidPitchDescriptionError (Exception)

An exception raised when an invalid pitch specifier is used.

permalink view source

IllegalNumberOfControlPointsError (Exception)

Raised when a curve is drawn with more than 2 control points

permalink view source

InvalidImageFormatError (Exception)

Raised when an image format cannot be determined.

permalink view source

ImageExportError (Exception)

Raised when low level image export fails.