pub struct TemporalFailure {
pub op: &'static str,
pub pandas_error: PandasTemporalError,
pub operands: Option<(i64, i64)>,
}Expand description
A temporal overflow, naming the operation that overflowed and the pandas exception it corresponds to.
Fields§
§op: &'static strThe FrankenPandas operation, e.g. "Timedelta::add".
pandas_error: PandasTemporalErrorWhat pandas raises for this operation.
operands: Option<(i64, i64)>The operand pair whose exact result left the representable range, when the failing operation had one. Carried for the HARDENED audit trail (br-frankenpandas-fyr1z-hardened-audit-vllv6) so a recovery entry can name the range violation rather than merely that one occurred.
Implementations§
Source§impl TemporalFailure
impl TemporalFailure
pub const fn new(op: &'static str, pandas_error: PandasTemporalError) -> Self
Sourcepub const fn with_operands(self, lhs: i64, rhs: i64) -> Self
pub const fn with_operands(self, lhs: i64, rhs: i64) -> Self
Attach the operands that produced this failure.
Trait Implementations§
Source§impl Clone for TemporalFailure
impl Clone for TemporalFailure
impl Copy for TemporalFailure
Source§impl Debug for TemporalFailure
impl Debug for TemporalFailure
impl Eq for TemporalFailure
Source§impl Hash for TemporalFailure
impl Hash for TemporalFailure
Source§impl PartialEq for TemporalFailure
impl PartialEq for TemporalFailure
impl StructuralPartialEq for TemporalFailure
Auto Trait Implementations§
impl Forget for TemporalFailure
impl Freeze for TemporalFailure
impl Move for TemporalFailure
impl RefUnwindSafe for TemporalFailure
impl Send for TemporalFailure
impl Sync for TemporalFailure
impl Unpin for TemporalFailure
impl UnsafeUnpin for TemporalFailure
impl UnwindSafe for TemporalFailure
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