pub enum JavaError {
ReadError(StreamError),
ConvertError(ConversionError),
}
Expand description
Overall error type for everything that can go wrong with Java deserialization
Variants§
ReadError(StreamError)
An error in the read/stream/deserialization process
ConvertError(ConversionError)
An error arising from the conversion of read data to Rust struct
Trait Implementations§
Source§impl Error for JavaError
impl Error for JavaError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Source§impl From<ConversionError> for JavaError
impl From<ConversionError> for JavaError
Source§fn from(source: ConversionError) -> Self
fn from(source: ConversionError) -> Self
Converts to this type from the input type.
Source§impl From<StreamError> for JavaError
impl From<StreamError> for JavaError
Source§fn from(source: StreamError) -> Self
fn from(source: StreamError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for JavaError
impl !RefUnwindSafe for JavaError
impl Send for JavaError
impl Sync for JavaError
impl Unpin for JavaError
impl !UnwindSafe for JavaError
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more