pub enum AsepriteParseError<I: Debug> {
Show 18 variants
InvalidColorDepth(u16),
InvalidUtf8(FromUtf8Error),
InvalidLayerType(u16),
InvalidBlendMode(u16),
InvalidCompressedData(DecompressError),
NotEnoughCompressedData,
InvalidCel,
InvalidCelType(u16),
InvalidAnimationDirection(u8),
GenericNom {
input: I,
nom: ErrorKind,
},
InvalidLayerChunk(Box<AsepriteParseError<I>>),
InvalidCelChunk(Box<AsepriteParseError<I>>),
InvalidCelExtraChunk(Box<AsepriteParseError<I>>),
InvalidTagsChunk(Box<AsepriteParseError<I>>),
InvalidPaletteChunk(Box<AsepriteParseError<I>>),
InvalidUserDataChunk(Box<AsepriteParseError<I>>),
InvalidSliceChunk(Box<AsepriteParseError<I>>),
InvalidColorProfileChunk(Box<AsepriteParseError<I>>),
}
Expand description
Errors that can occur during parsing
Encountering an error could mean one (or several) of these problems:
- You passed in an incomplete file (For example when loading immediately after a file change, as this means that the file could be empty or only partially saved)
- You passed in an invalid file (Not representing an .aseprite file)
- You are passing a file that is either too old, or too new. Make sure that you are saving/using a compatible Aseprite file.
If you encounter this error even though you have checked for the above problems, please report this as a bug.
Variants§
InvalidColorDepth(u16)
Color depth was invalid
InvalidUtf8(FromUtf8Error)
An embedded string was not utf-8
InvalidLayerType(u16)
An invalid layer type was found
InvalidBlendMode(u16)
An invalid blend mode was found
InvalidCompressedData(DecompressError)
The pixel data could not be decompressed
NotEnoughCompressedData
There was not enough compressed data
InvalidCel
An invalid cel was found while decompressing
InvalidCelType(u16)
An invalid cel type was found
InvalidAnimationDirection(u8)
An invalid animation direction was found
GenericNom
A generic nom
error was found
InvalidLayerChunk(Box<AsepriteParseError<I>>)
Could not parse a layer chunk
InvalidCelChunk(Box<AsepriteParseError<I>>)
Could not parse a cel chunk
InvalidCelExtraChunk(Box<AsepriteParseError<I>>)
Could not parse a cel extra chunk
InvalidTagsChunk(Box<AsepriteParseError<I>>)
Could not parse a tags chunk
InvalidPaletteChunk(Box<AsepriteParseError<I>>)
Could not parse a palette chunk
InvalidUserDataChunk(Box<AsepriteParseError<I>>)
Could not parse a user data chunk
InvalidSliceChunk(Box<AsepriteParseError<I>>)
Could not parse a slice chunk
InvalidColorProfileChunk(Box<AsepriteParseError<I>>)
Could not parse a color profile chunk