pub enum CaughtError {
PostgresError(ErrorReportWithLevel),
ErrorReport(ErrorReportWithLevel),
RustPanic {
ereport: ErrorReportWithLevel,
payload: Box<dyn Any + Send>,
},
}
Expand description
What kind of error was caught?
Variants§
PostgresError(ErrorReportWithLevel)
An error raised from within Postgres
ErrorReport(ErrorReportWithLevel)
A pgrx::error!()
or pgrx::ereport!(ERROR, ...)
raised from within Rust
RustPanic
A Rust panic!()
or std::panic::panic_any()
Implementations§
Source§impl CaughtError
impl CaughtError
Sourcepub fn rethrow(self) -> !
pub fn rethrow(self) -> !
Rethrow this CaughtError.
This is the same as std::panic::resume_unwind() and has the same semantics.
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for CaughtError
impl !RefUnwindSafe for CaughtError
impl Send for CaughtError
impl !Sync for CaughtError
impl Unpin for CaughtError
impl !UnwindSafe for CaughtError
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