Struct convex::ConvexError
source · pub struct ConvexError {
pub message: String,
pub data: Value,
}
Expand description
An application error that can be returned from Convex functions. To learn more about throwing custom application errors, see Convex Errors.
Fields§
§message: String
From any error, redacted from prod deployments.
data: Value
Custom application error data payload that can be passed from your function to a client.
Trait Implementations§
source§impl Clone for ConvexError
impl Clone for ConvexError
source§fn clone(&self) -> ConvexError
fn clone(&self) -> ConvexError
Returns a copy of the value. Read more
1.0.0 · 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 ConvexError
impl Debug for ConvexError
source§impl Display for ConvexError
impl Display for ConvexError
source§impl Error for ConvexError
impl Error for ConvexError
1.30.0 · 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()
source§impl PartialEq for ConvexError
impl PartialEq for ConvexError
source§fn eq(&self, other: &ConvexError) -> bool
fn eq(&self, other: &ConvexError) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for ConvexError
impl StructuralPartialEq for ConvexError
Auto Trait Implementations§
impl RefUnwindSafe for ConvexError
impl Send for ConvexError
impl Sync for ConvexError
impl Unpin for ConvexError
impl UnwindSafe for ConvexError
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
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.