pub enum TiffError {
FormatError(TiffFormatError),
UnsupportedError(TiffUnsupportedError),
IoError(Error),
LimitsExceeded,
IntSizeError,
UsageError(UsageError),
}
Expand description
Tiff error kinds.
Variants§
FormatError(TiffFormatError)
The Image is not formatted properly.
UnsupportedError(TiffUnsupportedError)
The Decoder does not support features required by the image.
IoError(Error)
An I/O Error occurred while decoding the image.
LimitsExceeded
The Limits of the Decoder is exceeded.
IntSizeError
An integer conversion to or from a platform size failed, either due to limits of the platform size or limits of the format.
UsageError(UsageError)
The image does not support the requested operation
Trait Implementations§
source§impl Error for TiffError
impl Error for TiffError
source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
source§fn cause(&self) -> Option<&dyn Error>
fn cause(&self) -> Option<&dyn Error>
👎Deprecated since 1.33.0: replaced by Error::source, which can support downcasting
source§impl From<FromUtf8Error> for TiffError
impl From<FromUtf8Error> for TiffError
source§fn from(_err: FromUtf8Error) -> TiffError
fn from(_err: FromUtf8Error) -> TiffError
Converts to this type from the input type.
source§impl From<TiffFormatError> for TiffError
impl From<TiffFormatError> for TiffError
source§fn from(err: TiffFormatError) -> TiffError
fn from(err: TiffFormatError) -> TiffError
Converts to this type from the input type.
source§impl From<TiffUnsupportedError> for TiffError
impl From<TiffUnsupportedError> for TiffError
source§fn from(err: TiffUnsupportedError) -> TiffError
fn from(err: TiffUnsupportedError) -> TiffError
Converts to this type from the input type.
source§impl From<TryFromIntError> for TiffError
impl From<TryFromIntError> for TiffError
source§fn from(_err: TryFromIntError) -> TiffError
fn from(_err: TryFromIntError) -> TiffError
Converts to this type from the input type.
source§impl From<UsageError> for TiffError
impl From<UsageError> for TiffError
source§fn from(err: UsageError) -> TiffError
fn from(err: UsageError) -> TiffError
Converts to this type from the input type.