pub enum DateArithmeticError {
DateOutOfRange,
CannotSubtractInfiniteDates,
DateOutOfRangeForTimestamp,
}Expand description
Why PostgreSQL refuses date arithmetic or the cast of a date to timestamp, one variant per
message it raises.
Variants§
DateOutOfRange
A result before 4714-11-24 BC or from 5874898-01-01.
CannotSubtractInfiniteDates
date - date with an infinite date.
DateOutOfRangeForTimestamp
A date from 294277-01-01 cast to timestamp.
Trait Implementations§
Source§impl Clone for DateArithmeticError
impl Clone for DateArithmeticError
impl Copy for DateArithmeticError
Source§impl Debug for DateArithmeticError
impl Debug for DateArithmeticError
Source§impl Display for DateArithmeticError
impl Display for DateArithmeticError
impl Eq for DateArithmeticError
Source§impl Error for DateArithmeticError
impl Error for DateArithmeticError
1.30.0 · 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 Hash for DateArithmeticError
impl Hash for DateArithmeticError
Source§impl PartialEq for DateArithmeticError
impl PartialEq for DateArithmeticError
impl StructuralPartialEq for DateArithmeticError
Auto Trait Implementations§
impl Forget for DateArithmeticError
impl Freeze for DateArithmeticError
impl Move for DateArithmeticError
impl RefUnwindSafe for DateArithmeticError
impl Send for DateArithmeticError
impl Sync for DateArithmeticError
impl Unpin for DateArithmeticError
impl UnsafeUnpin for DateArithmeticError
impl UnwindSafe for DateArithmeticError
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