iris.exceptions#

Exceptions specific to the Iris package.

exception iris.exceptions.AncillaryVariableNotFoundError[source]#

Bases: KeyError

Raised when a search yields no ancillary variables.

exception iris.exceptions.CannotAddError[source]#

Bases: ValueError

Raised when an object (e.g. coord) cannot be added to a Cube.

exception iris.exceptions.CellMeasureNotFoundError[source]#

Bases: KeyError

Raised when a search yields no cell measures.

exception iris.exceptions.ConcatenateError(differences)[source]#

Bases: IrisError

Raised when concatenate is expected to produce a single cube, but fails to do so.

Creates a ConcatenateError with a list of textual descriptions of the differences which prevented a concatenate.

Args:

  • differences:

    The list of strings which describe the differences.

exception iris.exceptions.ConnectivityNotFoundError[source]#

Bases: KeyError

Raised when a search yields no connectivities.

exception iris.exceptions.ConstraintMismatchError[source]#

Bases: IrisError

Raised when a constraint operation has failed to find the correct number of results.

exception iris.exceptions.CoordinateCollapseError[source]#

Bases: IrisError

Raised when a requested coordinate cannot be collapsed.

exception iris.exceptions.CoordinateMultiDimError(msg)[source]#

Bases: ValueError

Raised when a routine doesn’t support multi-dimensional coordinates.

exception iris.exceptions.CoordinateNotFoundError[source]#

Bases: KeyError

Raised when a search yields no coordinates.

exception iris.exceptions.CoordinateNotRegularError[source]#

Bases: ValueError

Raised when a coordinate is unexpectedly irregular.

exception iris.exceptions.DuplicateDataError(msg)[source]#

Bases: MergeError

Raised when merging two or more cubes that have identical metadata.

Creates a MergeError with a list of textual descriptions of the differences which prevented a merge.

Args:

  • differences:

    The list of strings which describe the differences.

exception iris.exceptions.IgnoreCubeException[source]#

Bases: IrisError

Raised from a callback function when a cube should be ignored on load.

exception iris.exceptions.InvalidCubeError[source]#

Bases: IrisError

Raised when a Cube validation check fails.

exception iris.exceptions.IrisError[source]#

Bases: Exception

Base class for errors in the Iris package.

exception iris.exceptions.LazyAggregatorError[source]#

Bases: Exception

exception iris.exceptions.MergeError(differences)[source]#

Bases: IrisError

Raised when merge is expected to produce a single cube, but fails to do so.

Creates a MergeError with a list of textual descriptions of the differences which prevented a merge.

Args:

  • differences:

    The list of strings which describe the differences.

exception iris.exceptions.NotYetImplementedError[source]#

Bases: IrisError

Raised by missing functionality.

Different meaning to NotImplementedError, which is for abstract methods.

exception iris.exceptions.TranslationError[source]#

Bases: IrisError

Raised when Iris is unable to translate format-specific codes.

exception iris.exceptions.UnitConversionError[source]#

Bases: IrisError

Raised when Iris is unable to convert a unit.