pub enum IonError {
IoError {
source: Error,
},
Incomplete {
label: &'static str,
position: Position,
},
EncodingError {
description: String,
},
DecodingError {
description: String,
},
IllegalOperation {
operation: String,
},
}
Expand description
Represents the different types of high-level failures that might occur when reading Ion data.
Variants§
IoError
Indicates that an IO error was encountered while reading or writing.
Incomplete
Indicates that the input buffer did not contain enough data to perform the requested read operation. If the input source contains more data, the reader can append it to the buffer and try again.
EncodingError
Indicates that the writer encountered a problem while serializing a given piece of data.
DecodingError
Indicates that the data stream being read contained illegal or otherwise unreadable data.
IllegalOperation
Returned when the user has performed an illegal operation (for example: calling stepOut() on the cursor at the top level.)
Trait Implementations§
source§impl Error for IonError
impl Error for IonError
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()
Auto Trait Implementations§
impl !RefUnwindSafe for IonError
impl Send for IonError
impl Sync for IonError
impl Unpin for IonError
impl !UnwindSafe for IonError
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