[][src]Enum jsondata::Error

pub enum Error {
    ParseFail(String),
    AddFail(String),
    SubFail(String),
    MulFail(String),
    DivFail(String),
    RemFail(String),
    NegFail(String),
    ShlFail(String),
    ShrFail(String),
    IndexOutofBound(isize),
    InvalidIndex(String),
    NotAnArray(String),
    InvalidContainer(String),
    PropertyNotFound(String),
    AppendString(String),
    InvalidNumber(String),
    JptrFail(String),
    IoError(String),
}

Enumeration of all possible errors that shall be returned by methods and functions under this package. Refer to individual methods and functions, returning Result type, for specific error handling.

Variants

ParseFail(String)

Failed to parse JSON text.

AddFail(String)

Failed to add two Json values.

SubFail(String)

Failed to subract two Json values.

MulFail(String)

Failed to multiply two Json values.

DivFail(String)

Failed to divide two Json values.

RemFail(String)

Failed to find reminder between two Json values.

NegFail(String)

Failed to negate Json value.

ShlFail(String)

Failed to left shift Json value.

ShrFail(String)

Failed to right shift Json value.

IndexOutofBound(isize)

When indexing a Json array with out of bound index.

InvalidIndex(String)

When attempting index an array with an invalid index.

NotAnArray(String)

When attempting array operation, like range, index etc.., on non-array value.

InvalidContainer(String)

When attempting lookup and indexing operations like, set, delete, append, index, etc.. on values that are neither array nor object.

PropertyNotFound(String)

When trying to lookup a Json object with missing property.

AppendString(String)

While appending a non string value with Json string.

InvalidNumber(String)

Found JSON text that looks like number, but not well formed.

JptrFail(String)

Failed processing json-pointer.

IoError(String)

std::io::Error returned by string processing API, while iterating on crate::Jsons stream of text.

Trait Implementations

impl Clone for Error[src]

fn clone_from(&mut self, source: &Self)1.0.0[src]

Performs copy-assignment from source. Read more

impl PartialEq<Error> for Error[src]

impl Debug for Error[src]

Auto Trait Implementations

impl Send for Error

impl Sync for Error

Blanket Implementations

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]