pub enum SexpError {
Type(SexpTypeError),
Length(SexpLengthError),
Na(SexpNaError),
InvalidValue(String),
MissingField(String),
DuplicateName(String),
}Expand description
Unified conversion error when decoding an R SEXP.
Variants§
Type(SexpTypeError)
SEXPTYPE did not match the expected one.
Length(SexpLengthError)
Length did not match the expected one.
Na(SexpNaError)
Missing value encountered where disallowed.
InvalidValue(String)
Value is syntactically valid but semantically invalid (e.g. parse error).
MissingField(String)
A required field was missing from a named list.
DuplicateName(String)
A named list has duplicate non-empty names.
Trait Implementations§
Source§impl Error for SexpError
impl Error for SexpError
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<MatchArgError> for SexpError
impl From<MatchArgError> for SexpError
Source§fn from(e: MatchArgError) -> Self
fn from(e: MatchArgError) -> Self
Converts to this type from the input type.
Source§impl From<SexpLengthError> for SexpError
impl From<SexpLengthError> for SexpError
Source§fn from(e: SexpLengthError) -> Self
fn from(e: SexpLengthError) -> Self
Converts to this type from the input type.
Source§impl From<SexpNaError> for SexpError
impl From<SexpNaError> for SexpError
Source§fn from(e: SexpNaError) -> Self
fn from(e: SexpNaError) -> Self
Converts to this type from the input type.
Source§impl From<SexpTypeError> for SexpError
impl From<SexpTypeError> for SexpError
Source§fn from(e: SexpTypeError) -> Self
fn from(e: SexpTypeError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for SexpError
impl RefUnwindSafe for SexpError
impl Send for SexpError
impl Sync for SexpError
impl Unpin for SexpError
impl UnsafeUnpin for SexpError
impl UnwindSafe for SexpError
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> RDisplay for Twhere
T: Display,
impl<T> RDisplay for Twhere
T: Display,
Source§fn as_r_string(&self) -> String
fn as_r_string(&self) -> String
Convert to a user-friendly string.
Source§impl<T> RError for Twhere
T: Error,
impl<T> RError for Twhere
T: Error,
Source§fn error_message(&self) -> String
fn error_message(&self) -> String
Get the error message (Display representation).
Source§fn error_chain(&self) -> Vec<String>
fn error_chain(&self) -> Vec<String>
Get all error messages in the chain, from outermost to innermost.
Source§fn error_chain_length(&self) -> i32
fn error_chain_length(&self) -> i32
Get the number of errors in the chain.