pub enum EngineError {
Domain(DomainError),
Schema(SchemaError),
Store(StoreError),
Consistency(ConsistencyError),
Evaluation(EvaluationError),
NamespaceNotFound {
namespace: String,
},
RelationNotFound {
namespace: String,
relation: String,
},
ParseError {
message: String,
},
StorageError {
message: String,
},
SchemaRequired,
WriterUnavailable {
operation: &'static str,
},
UnsupportedIndexProfile {
operation: &'static str,
profile: IndexProfile,
},
}Expand description
Error returned by public ZanzibarEngine methods.
Variants§
Domain(DomainError)
Domain primitive validation failed.
Schema(SchemaError)
Schema compilation or validation failed.
Store(StoreError)
Relationship store access or mutation semantics failed.
Consistency(ConsistencyError)
Consistency token validation failed.
Evaluation(EvaluationError)
Graph evaluation failed.
NamespaceNotFound
Requested namespace is not loaded.
RelationNotFound
Requested relation is not loaded in the namespace.
ParseError
Schema source parsing failed.
StorageError
Legacy compatibility storage failed.
SchemaRequired
Operation requires a loaded schema.
The writer actor is unavailable.
UnsupportedIndexProfile
The loaded index profile cannot support a requested operation.
Fields
§
profile: IndexProfileLoaded profile.
Trait Implementations§
Source§impl Debug for EngineError
impl Debug for EngineError
Source§impl Display for EngineError
impl Display for EngineError
Source§impl Error for EngineError
impl Error for EngineError
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 EngineError
impl From<ConsistencyError> for EngineError
Source§fn from(error: ConsistencyError) -> Self
fn from(error: ConsistencyError) -> Self
Converts to this type from the input type.
Source§impl From<DomainError> for EngineError
impl From<DomainError> for EngineError
Source§fn from(error: DomainError) -> Self
fn from(error: 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 EngineError
impl From<EvaluationError> for EngineError
Source§fn from(error: EvaluationError) -> Self
fn from(error: EvaluationError) -> Self
Converts to this type from the input type.
Source§impl From<SchemaError> for EngineError
impl From<SchemaError> for EngineError
Source§fn from(error: SchemaError) -> Self
fn from(error: SchemaError) -> Self
Converts to this type from the input type.
Source§impl From<StoreError> for EngineError
impl From<StoreError> for EngineError
Source§fn from(error: StoreError) -> Self
fn from(error: 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 PartialEq for EngineError
impl PartialEq for EngineError
Source§fn eq(&self, other: &EngineError) -> bool
fn eq(&self, other: &EngineError) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for EngineError
Auto Trait Implementations§
impl Freeze for EngineError
impl RefUnwindSafe for EngineError
impl Send for EngineError
impl Sync for EngineError
impl Unpin for EngineError
impl UnsafeUnpin for EngineError
impl UnwindSafe for EngineError
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