# errors

exception fontTools.varLib.errors.VarLibError

  Bases: `Exception`

  Base exception for the varLib module.

exception fontTools.varLib.errors.VarLibValidationError

  Bases: `VarLibError`

  Raised when input data is invalid from varLib’s point of view.

exception fontTools.varLib.errors.VarLibMergeError(merger=None, **kwargs)

  Bases: `VarLibError`

  Raised when input data cannot be merged into a variable font.

  property reason
  property offender
  property details

exception fontTools.varLib.errors.ShouldBeConstant(merger=None, **kwargs)

  Bases: `VarLibMergeError`

  some values were different, but should have been the same

  property details

exception fontTools.varLib.errors.FoundANone(merger=None, **kwargs)

  Bases: `VarLibMergeError`

  one of the values in a list was empty when it shouldn’t have been

  property offender
  property details

exception fontTools.varLib.errors.NotANone(merger=None, **kwargs)

  Bases: `VarLibMergeError`

  one of the values in a list was not empty when it should have been

  property offender
  property details

exception fontTools.varLib.errors.MismatchedTypes(merger=None, **kwargs)

  Bases: `VarLibMergeError`

  data had inconsistent types

exception fontTools.varLib.errors.LengthsDiffer(merger=None, **kwargs)

  Bases: `VarLibMergeError`

  a list of objects had inconsistent lengths

exception fontTools.varLib.errors.KeysDiffer(merger=None, **kwargs)

  Bases: `VarLibMergeError`

  a list of objects had different keys

exception fontTools.varLib.errors.InconsistentGlyphOrder(merger=None, **kwargs)

  Bases: `VarLibMergeError`

  the glyph order was inconsistent between masters

exception fontTools.varLib.errors.InconsistentExtensions(merger=None, **kwargs)

  Bases: `VarLibMergeError`

  the masters use extension lookups in inconsistent ways

exception fontTools.varLib.errors.UnsupportedFormat(merger=None, **kwargs)

  Bases: `VarLibMergeError`

  an OpenType subtable (%s) had a format I didn’t expect

  property reason

exception fontTools.varLib.errors.InconsistentFormats(merger=None, **kwargs)

  Bases: `UnsupportedFormat`

  an OpenType subtable (%s) had inconsistent formats between masters

exception fontTools.varLib.errors.VarLibCFFMergeError

  Bases: `VarLibError`

exception fontTools.varLib.errors.VarLibCFFDictMergeError(key, value, values)

  Bases: `VarLibCFFMergeError`

  Raised when a CFF PrivateDict cannot be merged.

exception fontTools.varLib.errors.VarLibCFFPointTypeMergeError(point_type, pt_index, m_index, default_type, glyph_name)

  Bases: `VarLibCFFMergeError`

  Raised when a CFF glyph cannot be merged because of point type differences.

exception fontTools.varLib.errors.VarLibCFFHintTypeMergeError(hint_type, cmd_index, m_index, default_type, glyph_name)

  Bases: `VarLibCFFMergeError`

  Raised when a CFF glyph cannot be merged because of hint type differences.

exception fontTools.varLib.errors.VariationModelError

  Bases: `VarLibError`

  Raised when a variation model is faulty.