Enum c3p0_common::error::C3p0Error
source · [−]pub enum C3p0Error {
Show 14 variants
InternalError {
cause: String,
},
DbError {
db: &'static str,
cause: String,
code: Option<String>,
},
RowMapperError {
cause: String,
},
OptimisticLockError {
message: String,
},
JsonProcessingError {
source: Error,
},
IteratorError {
message: String,
},
PoolError {
db: &'static str,
pool: &'static str,
cause: String,
},
ResultNotFoundError,
TransactionError {
source: Box<dyn Error + Send + Sync>,
},
CorruptedDbMigrationState {
message: String,
},
AlteredMigrationSql {
message: String,
},
WrongMigrationSet {
message: String,
},
IoError {
message: String,
},
MigrationError {
message: String,
source: Box<C3p0Error>,
},
}
Variants
InternalError
Fields
cause: String
DbError
RowMapperError
Fields
cause: String
OptimisticLockError
Fields
message: String
JsonProcessingError
Fields
source: Error
IteratorError
Fields
message: String
PoolError
ResultNotFoundError
TransactionError
CorruptedDbMigrationState
Fields
message: String
AlteredMigrationSql
Fields
message: String
WrongMigrationSet
Fields
message: String
IoError
Fields
message: String
MigrationError
Trait Implementations
sourceimpl Error for C3p0Error
impl Error for C3p0Error
sourcefn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
sourcefn backtrace(&self) -> Option<&Backtrace>
fn backtrace(&self) -> Option<&Backtrace>
🔬 This is a nightly-only experimental API. (
backtrace
)Returns a stack backtrace, if available, of where this error occurred. Read more
1.0.0 · sourcefn description(&self) -> &str
fn description(&self) -> &str
👎 Deprecated since 1.42.0:
use the Display impl or to_string()
Auto Trait Implementations
impl !RefUnwindSafe for C3p0Error
impl Send for C3p0Error
impl Sync for C3p0Error
impl Unpin for C3p0Error
impl !UnwindSafe for C3p0Error
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more