Enum jaded::ConversionError
source · pub enum ConversionError {
FieldNotFound(String),
NullPointerException,
InvalidType(&'static str),
UnexpectedBlockData(Vec<u8>),
MissingAnnotations(usize),
IncorrectClass(Cow<'static, str>, Cow<'static, str>),
UnexpectedClass(String),
}
Expand description
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(usize)
Annotation not available
IncorrectClass(Cow<'static, str>, Cow<'static, str>)
Incorrect class
UnexpectedClass(String)
Unmatched class for enum
Trait Implementations§
source§impl Debug for ConversionError
impl Debug for ConversionError
source§impl Display for ConversionError
impl Display for ConversionError
source§impl Error for ConversionError
impl Error for ConversionError
1.30.0 · source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
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.