pub enum PostgresGraphError {
Snapshot(SnapshotError),
ForwardSnapshot(CsrSnapshotError<u32, u32>),
InboundSnapshot(CscSnapshotError),
NotLoaded,
Build(BuildError),
Catalog(CatalogError),
Query(QueryError),
Sync(SyncError),
Config(ConfigError),
AccessDenied {
required: GraphRole,
actual: GraphRole,
},
}Expand description
Errors returned by the Postgres graph engine library.
Concrete variants only — no boxed or dynamic error types on the public surface.
Variants§
Snapshot(SnapshotError)
Snapshot bytes failed container validation.
ForwardSnapshot(CsrSnapshotError<u32, u32>)
Forward CSR topology sections could not be opened.
InboundSnapshot(CscSnapshotError)
Inbound CSC topology sections could not be opened.
NotLoaded
No graph engine is loaded in this session.
Build(BuildError)
Relational build or export failed.
Catalog(CatalogError)
Catalog registration is inconsistent or incomplete.
Query(QueryError)
Query limits or inputs were invalid.
Sync(SyncError)
Sync replay rejected a row or batch.
Config(ConfigError)
Operational configuration was invalid.
AccessDenied
Access control policy denied an operation.
Trait Implementations§
Source§impl Debug for PostgresGraphError
impl Debug for PostgresGraphError
Source§impl Display for PostgresGraphError
impl Display for PostgresGraphError
Source§impl Error for PostgresGraphError
impl Error for PostgresGraphError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns 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()
Source§impl From<BuildError> for PostgresGraphError
impl From<BuildError> for PostgresGraphError
Source§fn from(error: BuildError) -> Self
fn from(error: BuildError) -> Self
Converts to this type from the input type.
Source§impl From<CatalogError> for PostgresGraphError
impl From<CatalogError> for PostgresGraphError
Source§fn from(error: CatalogError) -> Self
fn from(error: CatalogError) -> Self
Converts to this type from the input type.
Source§impl From<ConfigError> for PostgresGraphError
impl From<ConfigError> for PostgresGraphError
Source§fn from(error: ConfigError) -> Self
fn from(error: ConfigError) -> Self
Converts to this type from the input type.
Source§impl From<CscSnapshotError> for PostgresGraphError
impl From<CscSnapshotError> for PostgresGraphError
Source§fn from(error: CscSnapshotError) -> Self
fn from(error: CscSnapshotError) -> Self
Converts to this type from the input type.
Source§impl From<CsrSnapshotError<u32, u32>> for PostgresGraphError
impl From<CsrSnapshotError<u32, u32>> for PostgresGraphError
Source§impl From<GraphBuildError<u32, u32>> for PostgresGraphError
impl From<GraphBuildError<u32, u32>> for PostgresGraphError
Source§impl From<PlanError> for PostgresGraphError
impl From<PlanError> for PostgresGraphError
Source§impl From<QueryError> for PostgresGraphError
impl From<QueryError> for PostgresGraphError
Source§fn from(error: QueryError) -> Self
fn from(error: QueryError) -> Self
Converts to this type from the input type.
Source§impl From<SnapshotError> for PostgresGraphError
impl From<SnapshotError> for PostgresGraphError
Source§fn from(error: SnapshotError) -> Self
fn from(error: SnapshotError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for PostgresGraphError
impl RefUnwindSafe for PostgresGraphError
impl Send for PostgresGraphError
impl Sync for PostgresGraphError
impl Unpin for PostgresGraphError
impl UnsafeUnpin for PostgresGraphError
impl UnwindSafe for PostgresGraphError
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