Module image::error[][src]

Contains detailed error representation.

See the main ImageError which contains a variant for each specialized error type. The subtypes used in each variant are opaque by design. They can be roughly inspected through their respective kind methods which work similar to std::io::Error::kind.

The error interface makes it possible to inspect the error of an underlying decoder or encoder, through the Error::source method. Note that this is not part of the stable interface and you may not rely on a particular error value for a particular operation. This means mainly that image does not promise to remain on a particular version of its underlying decoders but if you ensure to use the same version of the dependency (or at least of the error type) through external means then you could inspect the error type in slightly more detail.

Structs

DecodingError

An error was encountered while decoding an image.

EncodingError

An error was encountered while encoding an image.

LimitError

Completing the operation would have required more resources than allowed.

ParameterError

An error was encountered in inputs arguments.

UnsupportedError

The implementation for an operation was not provided.

Enums

ImageError

The generic error type for image operations.

ImageFormatHint

A best effort representation for image formats.

LimitErrorKind

Indicates the limit that prevented an operation from completing.

ParameterErrorKind

Details how a parameter is malformed.

UnsupportedErrorKind

Details what feature is not supported.

Type Definitions

ImageResult

Result of an image decoding/encoding process