pub enum PolarsError {
Show 17 variants
AssertionError(ErrString),
ColumnNotFound(ErrString),
ComputeError(ErrString),
Duplicate(ErrString),
InvalidOperation(ErrString),
IO {
error: Arc<Error>,
msg: Option<ErrString>,
},
NoData(ErrString),
OutOfBounds(ErrString),
SchemaFieldNotFound(ErrString),
SchemaMismatch(ErrString),
ShapeMismatch(ErrString),
SQLInterface(ErrString),
SQLSyntax(ErrString),
StringCacheMismatch(ErrString),
StructFieldNotFound(ErrString),
Context {
error: Box<PolarsError>,
msg: ErrString,
},
ExprContext {
error: Box<PolarsError>,
expr: ErrString,
},
}Variants§
AssertionError(ErrString)
ColumnNotFound(ErrString)
ComputeError(ErrString)
Duplicate(ErrString)
InvalidOperation(ErrString)
IO
NoData(ErrString)
OutOfBounds(ErrString)
SchemaFieldNotFound(ErrString)
SchemaMismatch(ErrString)
ShapeMismatch(ErrString)
SQLInterface(ErrString)
SQLSyntax(ErrString)
StringCacheMismatch(ErrString)
StructFieldNotFound(ErrString)
Context
ExprContext
Implementations§
Source§impl PolarsError
impl PolarsError
pub fn context_trace(self) -> Self
pub fn wrap_msg<F: FnOnce(&str) -> String>(&self, func: F) -> Self
pub fn context(self, msg: ErrString) -> Self
pub fn remove_context(self) -> Self
pub fn with_expr_context(self, expr: ErrString) -> Self
Trait Implementations§
Source§impl Clone for PolarsError
impl Clone for PolarsError
Source§fn clone(&self) -> PolarsError
fn clone(&self) -> PolarsError
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for PolarsError
impl Debug for PolarsError
Source§impl Display for PolarsError
impl Display for PolarsError
Source§impl Error for PolarsError
impl Error for PolarsError
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<Error> for PolarsError
impl From<Error> for PolarsError
Source§impl From<Infallible> for PolarsError
impl From<Infallible> for PolarsError
Source§fn from(_: Infallible) -> Self
fn from(_: Infallible) -> Self
Converts to this type from the input type.
Source§impl From<PolarsError> for Error
impl From<PolarsError> for Error
Source§fn from(value: PolarsError) -> Self
fn from(value: PolarsError) -> Self
Converts to this type from the input type.
Source§impl From<TryReserveError> for PolarsError
impl From<TryReserveError> for PolarsError
Source§fn from(value: TryReserveError) -> Self
fn from(value: TryReserveError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for PolarsError
impl !UnwindSafe for PolarsError
impl Freeze for PolarsError
impl Send for PolarsError
impl Sync for PolarsError
impl Unpin for PolarsError
impl UnsafeUnpin for PolarsError
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