Enum jaded::StreamError
source · pub enum StreamError {
EndOfStream(Error),
NonJavaObject(u16),
UnknownVersion(u16),
UnknownMark(u8),
UnrecognisedType(char),
UnknownReference(u32),
InvalidReference(&'static str),
InvalidStream(&'static str),
NotImplemented(&'static str),
}
Expand description
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.