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

An IO error occured. Contains std::io::Error.

An error when parsing data to bytes. Contains byteorder::Error.

An error when attempting to interpret a sequence of u8 as a string.

An error when parsing an integer. Contains std::num::ParseIntError.

Unexpected item kind given while parsing a tag.

APE header contains invalid tag size.

Unable to write a tag without items.

Invalid APE version. It works with APEv2 tags only.

Item keys can have a length of 2 (including) up to 255 (including) characters.

Item key contains non-ascii characters.

Not allowed are the following keys: ID3, TAG, OggS and MP+.

There is no APE tag in a file.

Trait Implementations

impl StdError for Error
[src]

A short description of the error. Read more

The lower-level cause of this error, if any. Read more

impl Debug for Error
[src]

Formats the value using the given formatter.

impl Display for Error
[src]

Formats the value using the given formatter. Read more

impl From<ByteOrderError> for Error
[src]

Performs the conversion.

impl From<IoError> for Error
[src]

Performs the conversion.

impl From<ParseIntError> for Error
[src]

Performs the conversion.

impl From<Utf8Error> for Error
[src]

Performs the conversion.