Enum c3p0_common::error::C3p0Error
source · pub enum C3p0Error {
InternalError {
cause: String,
},
DbError {
db: &'static str,
cause: String,
code: Option<String>,
},
RowMapperError {
cause: String,
},
OptimisticLockError {
cause: String,
},
JsonProcessingError {
cause: Error,
},
IteratorError {
cause: String,
},
PoolError {
db: &'static str,
pool: &'static str,
cause: String,
},
ResultNotFoundError,
TransactionError {
cause: Box<dyn Error + Send + Sync>,
},
IoError {
cause: String,
},
MigrationError {
cause: String,
source: Box<C3p0Error>,
},
OperationNotSupported {
cause: String,
},
}
Variants§
InternalError
DbError
RowMapperError
OptimisticLockError
JsonProcessingError
IteratorError
PoolError
ResultNotFoundError
TransactionError
IoError
MigrationError
OperationNotSupported
Trait Implementations§
source§impl Error for C3p0Error
impl Error for C3p0Error
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()
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§
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