Enum sourcemap::Error [] [src]

pub enum Error {
    Io(Error),
    Utf8(Utf8Error),
    BadJson(Error),
    VlqLeftover,
    VlqNoValues,
    VlqOverflow,
    BadSegmentSize(u32),
    BadSourceReference(u32),
    BadNameReference(u32),
    IndexedSourcemap,
    RegularSourcemap,
    InvalidDataUrl,
    CannotFlatten(String),
}

Represents different failure cases

Variants

a std::io error

a std::str::Utf8Error

a JSON parsing related failure

a VLQ string was malformed and data was left over

a VLQ string was empty and no values could be decoded.

Overflow in Vlq handling

a mapping segment had an unsupported size

a reference to a non existing source was encountered

a reference to a non existing name was encountered

Indicates that an indexed sourcemap was encountered when a regular sourcemap was expected

Indicates that an regular (non-indexed) sourcemap was when a sourcemap index was expected

Indicates an invalid data URL

Flatten failed

Trait Implementations

impl Debug for Error
[src]

[src]

Formats the value using the given formatter. Read more

impl From<Error> for Error
[src]

[src]

Performs the conversion.

impl From<FromUtf8Error> for Error
[src]

[src]

Performs the conversion.

impl From<Utf8Error> for Error
[src]

[src]

Performs the conversion.

impl From<Error> for Error
[src]

[src]

Performs the conversion.

impl Error for Error
[src]

[src]

A short description of the error. Read more

[src]

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

impl Display for Error
[src]

[src]

Formats the value using the given formatter. Read more

Auto Trait Implementations

impl Send for Error

impl Sync for Error