Enum jaded::ConversionError[][src]

pub enum ConversionError {
    FieldNotFound(String),
    NullPointerException,
    InvalidType(&'static str),
    UnexpectedBlockData(Vec<u8>),
    MissingAnnotations,
}

Things that can go wrong when converting deserialized java objects into Rust entities

Variants

FieldNotFound(String)

Error signifying a required field does not exist in the deserialized Java Object

NullPointerException

Everyone’s favourite Java exception brought to rust. Returned if a non-optional field has a null value.

InvalidType(&'static str)

The deserialized object was not the type required.

UnexpectedBlockData(Vec<u8>)

Read block data instead of object

MissingAnnotations

Annotation not available

Trait Implementations

impl Debug for ConversionError[src]

impl Display for ConversionError[src]

impl Error for ConversionError[src]

impl From<ConversionError> for JavaError[src]

Auto Trait Implementations

Blanket Implementations

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

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

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

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

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

impl<T> ToString for T where
    T: Display + ?Sized
[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.