pub enum GraphError {
Show 66 variants
MutationError(MutationError),
PropError(PropError),
WrongNumOfArgs(String, String),
ArrowRs(ArrowError),
InvalidPath {
source: InvalidPathReason,
},
DiskGraphNotFound,
IndexNotCreated,
FailedToCreateIndex,
FailedToPersistIndex,
CannotPersistRamIndex,
FailedToRemoveExistingGraphIndex(PathBuf),
FailedToMoveGraphIndex,
EventGraphNoValidView,
GraphNotFound(PathBuf),
GraphNameAlreadyExists(PathBuf),
InvalidProperty {
reason: String,
},
ParseTime {
source: ParseTimeError,
},
NodeExistsError(GID),
NodesExistError(Vec<GID>),
EdgeExistsError(GID, GID),
EdgesExistError(Vec<(GID, GID)>),
NodeMissingError(GID),
NodeTypeError(String),
EdgeMissingError {
src: GID,
dst: GID,
},
PropertyMissingError(String),
InvalidLayer(InvalidLayer),
NoDefaultLayer {
valid_layers: String,
},
InvalidEdgeLayer {
layer: String,
src: String,
dst: String,
},
GraphLoadError,
IOError {
source: Error,
},
IOErrorMsg(String),
LayerNameAPIError,
TimeAPIError,
IllegalSet(String),
AttemptToMutateImmutableGraph,
TqdmError,
JinjaError(String),
SerdeError(Error),
SystemTimeError(SystemTimeError),
PropertyFilteringNotImplemented,
ExpectedValueForOperator(String, String),
UnsupportedArrowDataType(PropType),
NotSupported,
InvalidFilterExpectSingleGotNone(FilterOperator),
InvalidFilterExpectSingleGotSet(FilterOperator),
InvalidFilterCmp(PropType),
InvalidHomogeneousMap(PropType, PropType),
InvalidFilterExpectSetGotSingle(FilterOperator),
InvalidFilterExpectSetGotNone(FilterOperator),
InvalidContains(FilterOperator),
InvalidGqlFilter(String),
PropertyNotFound(String),
PropertyIndexNotFound(String),
UnsupportedFieldTypeForTokenization,
NoTokensFound,
TooManyViewsSet,
InvalidValueConversion,
UnsupportedValue(String),
EmptyValue,
ParsingError,
NodeFilterIsNotEdgeFilter,
NotExplodedEdgeFilter,
IndexingNotSupported,
OnDiskIndexAlreadyExists,
MismatchedIntervalTypes,
ZippedGraphCannotBeCached,
}Variants§
MutationError(MutationError)
PropError(PropError)
WrongNumOfArgs(String, String)
ArrowRs(ArrowError)
InvalidPath
Fields
§
source: InvalidPathReasonDiskGraphNotFound
IndexNotCreated
FailedToCreateIndex
FailedToPersistIndex
CannotPersistRamIndex
FailedToRemoveExistingGraphIndex(PathBuf)
FailedToMoveGraphIndex
EventGraphNoValidView
GraphNotFound(PathBuf)
GraphNameAlreadyExists(PathBuf)
InvalidProperty
ParseTime
Fields
§
source: ParseTimeErrorNodeExistsError(GID)
NodesExistError(Vec<GID>)
EdgeExistsError(GID, GID)
EdgesExistError(Vec<(GID, GID)>)
NodeMissingError(GID)
NodeTypeError(String)
EdgeMissingError
PropertyMissingError(String)
InvalidLayer(InvalidLayer)
NoDefaultLayer
InvalidEdgeLayer
GraphLoadError
IOError
IOErrorMsg(String)
LayerNameAPIError
TimeAPIError
IllegalSet(String)
AttemptToMutateImmutableGraph
TqdmError
JinjaError(String)
SerdeError(Error)
SystemTimeError(SystemTimeError)
PropertyFilteringNotImplemented
ExpectedValueForOperator(String, String)
UnsupportedArrowDataType(PropType)
NotSupported
InvalidFilterExpectSingleGotNone(FilterOperator)
InvalidFilterExpectSingleGotSet(FilterOperator)
InvalidFilterCmp(PropType)
InvalidHomogeneousMap(PropType, PropType)
InvalidFilterExpectSetGotSingle(FilterOperator)
InvalidFilterExpectSetGotNone(FilterOperator)
InvalidContains(FilterOperator)
InvalidGqlFilter(String)
PropertyNotFound(String)
PropertyIndexNotFound(String)
UnsupportedFieldTypeForTokenization
NoTokensFound
TooManyViewsSet
InvalidValueConversion
UnsupportedValue(String)
EmptyValue
ParsingError
NodeFilterIsNotEdgeFilter
NotExplodedEdgeFilter
IndexingNotSupported
OnDiskIndexAlreadyExists
MismatchedIntervalTypes
ZippedGraphCannotBeCached
Implementations§
Source§impl GraphError
impl GraphError
pub fn no_default_layer<'graph>(graph: impl GraphViewOps<'graph>) -> Self
Trait Implementations§
Source§impl Debug for GraphError
impl Debug for GraphError
Source§impl Display for GraphError
impl Display for GraphError
Source§impl Error for GraphError
impl Error for GraphError
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<ArrowError> for GraphError
impl From<ArrowError> for GraphError
Source§fn from(source: ArrowError) -> Self
fn from(source: ArrowError) -> Self
Converts to this type from the input type.
Source§impl From<Error> for GraphError
impl From<Error> for GraphError
Source§impl From<Error> for GraphError
impl From<Error> for GraphError
Source§impl From<GraphError> for Error
impl From<GraphError> for Error
Source§fn from(error: GraphError) -> Self
fn from(error: GraphError) -> Self
Converts to this type from the input type.
Source§impl<A: Debug> From<IllegalSet<A>> for GraphError
impl<A: Debug> From<IllegalSet<A>> for GraphError
Source§fn from(value: IllegalSet<A>) -> Self
fn from(value: IllegalSet<A>) -> Self
Converts to this type from the input type.
Source§impl From<InvalidLayer> for GraphError
impl From<InvalidLayer> for GraphError
Source§fn from(source: InvalidLayer) -> Self
fn from(source: InvalidLayer) -> Self
Converts to this type from the input type.
Source§impl From<InvalidNodeId> for GraphError
impl From<InvalidNodeId> for GraphError
Source§fn from(value: InvalidNodeId) -> Self
fn from(value: InvalidNodeId) -> Self
Converts to this type from the input type.
Source§impl From<InvalidPathReason> for GraphError
impl From<InvalidPathReason> for GraphError
Source§fn from(source: InvalidPathReason) -> Self
fn from(source: InvalidPathReason) -> Self
Converts to this type from the input type.
Source§impl From<MetadataError> for GraphError
impl From<MetadataError> for GraphError
Source§fn from(value: MetadataError) -> Self
fn from(value: MetadataError) -> Self
Converts to this type from the input type.
Source§impl From<MutationError> for GraphError
impl From<MutationError> for GraphError
Source§fn from(source: MutationError) -> Self
fn from(source: MutationError) -> Self
Converts to this type from the input type.
Source§impl From<ParseTimeError> for GraphError
impl From<ParseTimeError> for GraphError
Source§fn from(source: ParseTimeError) -> Self
fn from(source: ParseTimeError) -> Self
Converts to this type from the input type.
Source§impl From<PropError> for GraphError
impl From<PropError> for GraphError
Source§impl From<SystemTimeError> for GraphError
impl From<SystemTimeError> for GraphError
Source§fn from(source: SystemTimeError) -> Self
fn from(source: SystemTimeError) -> Self
Converts to this type from the input type.
Source§impl From<TPropError> for GraphError
impl From<TPropError> for GraphError
Source§fn from(value: TPropError) -> Self
fn from(value: TPropError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for GraphError
impl !RefUnwindSafe for GraphError
impl Send for GraphError
impl Sync for GraphError
impl Unpin for GraphError
impl !UnwindSafe for GraphError
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more