Enum jaded::StreamError [−][src]
pub enum StreamError { 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 Error for StreamError
[src]
impl Error for StreamError
[src]impl From<FromUtf8Error> for StreamError
[src]
impl From<FromUtf8Error> for StreamError
[src]fn from(_: FromUtf8Error) -> Self
[src]
impl From<StreamError> for JavaError
[src]
impl From<StreamError> for JavaError
[src]fn from(source: StreamError) -> Self
[src]
Auto Trait Implementations
impl !RefUnwindSafe for StreamError
impl !RefUnwindSafe for StreamError
impl Send for StreamError
impl Send for StreamError
impl Sync for StreamError
impl Sync for StreamError
impl Unpin for StreamError
impl Unpin for StreamError
impl !UnwindSafe for StreamError
impl !UnwindSafe for StreamError