Enum jaded::JavaError[][src]

pub enum JavaError {
    EndOfStream(Error),
    NonJavaObject(u16),
    UnknownVersion(u16),
    UnknownMark(u8),
    UnrecognisedType(char),
    UnknownReference(u32),
    InvalidReference(&'static str),
    InvalidStream(&'static str),
    NotImplemented(&'static str),
}

Error for things that can go wrong with deserialization

Variants

EndOfStream(Error)

If the stream ends while the parser is still expecting more data

NonJavaObject(u16)

If the stream does not represent Serialized Java objects

UnknownVersion(u16)

If the stream version is not one we can handle

UnknownMark(u8)

If the next stream marker is not a value recognised by the serialization protocol

The byte read from the stream will be included in the error.

UnrecognisedType(char)

If the type or a field is not one of the allowed characters

The character being read as a type specification is included in the error

UnknownReference(u32)

If a back reference is to an unregistered handle

The unrecognised handle is included in the error

InvalidReference(&'static str)

If the reference registered to a handle is not of the correct type

The included string is the type that was expected, not the type found.

InvalidStream(&'static str)

The stream is not valid for some other reason

The included string gives an error message of the problem found.

NotImplemented(&'static str)

This feature is not implemented yet Some features are not possible without access to the Java source that wrote the stream.

Trait Implementations

impl Debug for JavaError[src]

impl Display for JavaError[src]

impl Error for JavaError[src]

impl From<Error> for JavaError[src]

impl From<FromUtf8Error> 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.