pub struct ErrorInfo {
pub neo4j_code: &'static str,
pub gql_status: &'static str,
pub stage: ErrorStage,
pub retryable: bool,
}Expand description
The classification of one query-engine error (ADR-0502 §2): everything
the ABI v2 error shape carries beside the message, and everything the
surfaces need to render a failure. Built only by error_info — the
one exhaustive classification, so a new engine variant does not compile
until it is classified here.
Fields§
§neo4j_code: &'static strThe Neo4j status code the caller-facing classes carry; the
internal class carries the genericized UnknownError code
(ADR-0260).
gql_status: &'static strThe GQLSTATUS (the codes the repo’s surfaces emit today, see the module docs).
stage: ErrorStageThe compile/runtime/internal stage (ADR-0319).
retryable: boolThe drivers’ transient test (ADR-0502): whether a driver’s managed transaction retries the statement. True for a write-write conflict and a retryable processing cap, false for everything else.
Trait Implementations§
impl Copy for ErrorInfo
impl Eq for ErrorInfo
impl StructuralPartialEq for ErrorInfo
Auto Trait Implementations§
impl Forget for ErrorInfo
impl Freeze for ErrorInfo
impl Move for ErrorInfo
impl RefUnwindSafe for ErrorInfo
impl Send for ErrorInfo
impl Sync for ErrorInfo
impl Unpin for ErrorInfo
impl UnsafeUnpin for ErrorInfo
impl UnwindSafe for ErrorInfo
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.