Enum json_pointer::Error [] [src]

pub enum Error {
    EndInEscape,
    InvalidEscape(char),
    NoLeadingSlash,
    NoSuchKey(String),
    NotIndexable,
    OutOfBounds(usize),
}

An error that can be encountered by using this crate.

Variants

The pointer ended with a tilde (~), which is illegal because the tilde is part of an escape sequence.

An invalid escape sequence was encountered.

An error caused by not having a leading slash on the JSON pointer.

For example, the string a/b/c is not a valid JSON pointer, while /a/b/c is.

This error will therefore be triggered by trying to use the URI Fragment Identifier Representation.

The pointer pointed to a nonexistent key.

The pointer resulted in trying to index a non-indexable type.

The pointer pointed to an out-of-bounds value in an array.

Trait Implementations

impl Clone for Error
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for Error
[src]

Formats the value using the given formatter.

impl PartialEq for Error
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.