Enum pgrx_pg_sys::submodules::panic::CaughtError
source · 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.