pub struct RowConversionError { /* private fields */ }Expand description
Row-level conversion failure raised by a hand-written
FromRow::from_row_with_plan.
Use this when decoded cells are individually valid but fail a row-level domain rule. Cell-local failures should stay
CellConversionError.
Callers provide only a reason and optional source. The connector adds row_index when iteration yields the failure.
Implementations§
Source§impl RowConversionError
impl RowConversionError
Sourcepub fn new(reason: impl Into<Box<str>>) -> Self
pub fn new(reason: impl Into<Box<str>>) -> Self
Build a row-level error with just a reason, equivalent to builder(reason).build().
pub fn builder(reason: impl Into<Box<str>>) -> RowConversionErrorBuilder
pub fn reason(&self) -> &str
pub fn source(&self) -> Option<&(dyn StdError + Send + Sync + 'static)>
Trait Implementations§
Source§impl Debug for RowConversionError
impl Debug for RowConversionError
Source§impl Display for RowConversionError
impl Display for RowConversionError
Source§impl Error for RowConversionError
impl Error for RowConversionError
Source§fn source(&self) -> Option<&(dyn StdError + 'static)>
fn source(&self) -> Option<&(dyn StdError + '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<RowConversionError> for RowDecodeError
impl From<RowConversionError> for RowDecodeError
Source§fn from(error: RowConversionError) -> Self
fn from(error: RowConversionError) -> Self
Converts to this type from the input type.
Source§impl From<RowConversionError> for Error
impl From<RowConversionError> for Error
Source§fn from(error: RowConversionError) -> Self
fn from(error: RowConversionError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for RowConversionError
impl !UnwindSafe for RowConversionError
impl Freeze for RowConversionError
impl Send for RowConversionError
impl Sync for RowConversionError
impl Unpin for RowConversionError
impl UnsafeUnpin for RowConversionError
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