Enum ape::Error
[−]
[src]
pub enum Error { Io(IoError), ByteOrder(ByteOrderError), FromUtf8(Utf8Error), ParseInt(ParseIntError), BadItemKind, BadTagSize, EmptyTag, InvalidApeVersion, InvalidItemKeyLen, InvalidItemKeyValue, ItemKeyDenied, TagNotFound, }
Describes all errors that may occur.
Variants
Io(IoError)
An IO error occured. Contains std::io::Error
.
ByteOrder(ByteOrderError)
An error when parsing data to bytes. Contains byteorder::Error
.
FromUtf8(Utf8Error)
An error when attempting to interpret a sequence of u8 as a string.
ParseInt(ParseIntError)
An error when parsing an integer. Contains std::num::ParseIntError
.
BadItemKind
Unexpected item kind given while parsing a tag.
BadTagSize
APE header contains invalid tag size.
EmptyTag
Unable to write a tag without items.
InvalidApeVersion
Invalid APE version. It works with APEv2 tags only.
InvalidItemKeyLen
Item keys can have a length of 2 (including) up to 255 (including) characters.
InvalidItemKeyValue
Item key contains non-ascii characters.
ItemKeyDenied
Not allowed are the following keys: ID3, TAG, OggS and MP+.
TagNotFound
There is no APE tag in a file.
Trait Implementations
impl StdError for Error
[src]
fn description(&self) -> &str
A short description of the error. Read more
fn cause(&self) -> Option<&StdError>
The lower-level cause of this error, if any. Read more
impl Debug for Error
[src]
impl Display for Error
[src]
impl From<ByteOrderError> for Error
[src]
fn from(error: ByteOrderError) -> Error
Performs the conversion.
impl From<IoError> for Error
[src]
impl From<ParseIntError> for Error
[src]
fn from(error: ParseIntError) -> Error
Performs the conversion.