pub enum Error {
DbErr {
location: Location,
source: DbErr,
},
NotFoundDataSource {
location: Location,
name: Box<str>,
},
NotSetDataSources {
location: Location,
},
InconsistentDataSourceAndTransaction {
location: Location,
data_source_name: Arc<str>,
transaction_name: Arc<str>,
txn: Transaction,
},
TransactionHaveMoreThanOneReference {
location: Location,
data_source_name: Arc<str>,
transaction_hierarchy: usize,
txn: Transaction,
},
NestedTransactionHaveMoreThanOneReference {
location: Location,
data_source_name: Arc<str>,
current_transaction_hierarchy: usize,
nested_transaction_hierarchy: usize,
txn: Transaction,
},
}Variants§
DbErr
NotFoundDataSource
NotSetDataSources
InconsistentDataSourceAndTransaction
TransactionHaveMoreThanOneReference
NestedTransactionHaveMoreThanOneReference
Trait Implementations§
Source§impl Error for Error
impl Error for Error
Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Source§fn cause(&self) -> Option<&dyn Error>
fn cause(&self) -> Option<&dyn Error>
👎Deprecated since 1.33.0: replaced by Error::source, which can support downcasting
Source§impl ErrorCompat for Error
impl ErrorCompat for Error
Source§fn iter_chain(&self) -> ChainCompat<'_, '_>where
Self: AsErrorSource,
fn iter_chain(&self) -> ChainCompat<'_, '_>where
Self: AsErrorSource,
Returns an iterator for traversing the chain of errors,
starting with the current error
and continuing with recursive calls to
Error::source. Read moreSource§impl ResponseError for Error
impl ResponseError for Error
fn as_status(&self) -> StatusCode
fn status_codes(codes: &mut BTreeSet<StatusCode>)
fn as_response(&self) -> Response<ResponseBody>
fn responses( schemas: &mut BTreeMap<String, Schema>, schemas_in_progress: &mut Vec<String>, ) -> BTreeMap<StatusCode, Response>
Auto Trait Implementations§
impl Freeze for Error
impl !RefUnwindSafe for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl !UnwindSafe for Error
Blanket Implementations§
Source§impl<T> AsErrorSource for Twhere
T: Error + 'static,
impl<T> AsErrorSource for Twhere
T: Error + 'static,
Source§fn as_error_source(&self) -> &(dyn Error + 'static)
fn as_error_source(&self) -> &(dyn Error + 'static)
For maximum effectiveness, this needs to be called as a method
to benefit from Rust’s automatic dereferencing of method
receivers.
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<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<T> ToStringFallible for Twhere
T: Display,
impl<T> ToStringFallible for Twhere
T: Display,
Source§fn try_to_string(&self) -> Result<String, TryReserveError>
fn try_to_string(&self) -> Result<String, TryReserveError>
ToString::to_string, but without panic on OOM.