pub enum ZanzibarError {
NamespaceNotFound(String),
RelationNotFound(String, String),
ParseError(String),
StorageError(String),
SchemaRequired,
Domain(DomainError),
Schema(SchemaError),
Store(StoreError),
Consistency(ConsistencyError),
Evaluation(EvaluationError),
}Expand description
Top-level error returned by the compatibility service and public helper APIs.
Variants§
NamespaceNotFound(String)
Requested namespace is not configured.
RelationNotFound(String, String)
Requested relation is not configured in the namespace.
ParseError(String)
DSL parsing failed.
StorageError(String)
Legacy tuple store operation failed.
SchemaRequired
Operation requires a loaded schema snapshot.
Domain(DomainError)
Domain validation failed.
Schema(SchemaError)
Schema compilation or validation failed.
Store(StoreError)
Indexed relationship store operation failed.
Consistency(ConsistencyError)
Consistency token validation failed.
Evaluation(EvaluationError)
Graph evaluation failed.
Trait Implementations§
Source§impl Debug for ZanzibarError
impl Debug for ZanzibarError
Source§impl Display for ZanzibarError
impl Display for ZanzibarError
Source§impl Error for ZanzibarError
impl Error for ZanzibarError
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<ConsistencyError> for ZanzibarError
impl From<ConsistencyError> for ZanzibarError
Source§fn from(source: ConsistencyError) -> Self
fn from(source: ConsistencyError) -> Self
Converts to this type from the input type.
Source§impl From<DomainError> for ZanzibarError
impl From<DomainError> for ZanzibarError
Source§fn from(source: DomainError) -> Self
fn from(source: DomainError) -> Self
Converts to this type from the input type.
Source§impl From<EngineError> for ZanzibarError
impl From<EngineError> for ZanzibarError
Source§fn from(error: EngineError) -> Self
fn from(error: EngineError) -> Self
Converts to this type from the input type.
Source§impl From<EvaluationError> for ZanzibarError
impl From<EvaluationError> for ZanzibarError
Source§fn from(source: EvaluationError) -> Self
fn from(source: EvaluationError) -> Self
Converts to this type from the input type.
Source§impl From<SchemaError> for ZanzibarError
impl From<SchemaError> for ZanzibarError
Source§fn from(source: SchemaError) -> Self
fn from(source: SchemaError) -> Self
Converts to this type from the input type.
Source§impl From<StoreError> for ZanzibarError
impl From<StoreError> for ZanzibarError
Source§fn from(source: StoreError) -> Self
fn from(source: StoreError) -> Self
Converts to this type from the input type.
Source§impl From<ZanzibarError> for EngineError
impl From<ZanzibarError> for EngineError
Source§fn from(error: ZanzibarError) -> Self
fn from(error: ZanzibarError) -> Self
Converts to this type from the input type.
Source§impl From<ZanzibarError> for PolicyIoError
impl From<ZanzibarError> for PolicyIoError
Source§fn from(source: ZanzibarError) -> Self
fn from(source: ZanzibarError) -> Self
Converts to this type from the input type.
Source§impl PartialEq for ZanzibarError
impl PartialEq for ZanzibarError
Source§fn eq(&self, other: &ZanzibarError) -> bool
fn eq(&self, other: &ZanzibarError) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ZanzibarError
Auto Trait Implementations§
impl Freeze for ZanzibarError
impl RefUnwindSafe for ZanzibarError
impl Send for ZanzibarError
impl Sync for ZanzibarError
impl Unpin for ZanzibarError
impl UnsafeUnpin for ZanzibarError
impl UnwindSafe for ZanzibarError
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