pub enum Error {
Show 17 variants
ObjectNotFound(ObjectId),
PathNotFound(VirtualPath),
NotADirectory(ObjectId),
NotAFile(ObjectId),
NameAlreadyExists {
name: Name,
directory: ObjectId,
},
InvalidName(String),
InvalidPath(String),
InvalidMetadataKey(String),
CyclicMove(ObjectId),
CyclicCopy(ObjectId),
SymlinkLoop(String),
AttachedObject(ObjectId),
CyclicAttach(ObjectId),
RootMove,
RootDelete,
RootDetach,
NotAuthorized {
object: ObjectId,
operation: Operation,
actor: Option<ActorId>,
},
}Expand description
The error type for all Engine operations.
Variants§
ObjectNotFound(ObjectId)
The referenced object does not exist.
PathNotFound(VirtualPath)
No object exists at the given path.
NotADirectory(ObjectId)
The operation requires a directory, but the object is not one.
NotAFile(ObjectId)
The operation requires a file, but the object is not one.
NameAlreadyExists
A sibling object with the same name already exists.
Fields
InvalidName(String)
The string is not a valid object name.
InvalidPath(String)
The string is not a valid virtual path.
InvalidMetadataKey(String)
The string is not a valid metadata key.
CyclicMove(ObjectId)
Moving the object into itself or one of its descendants would create a cycle.
CyclicCopy(ObjectId)
Copying the object into itself or one of its descendants would recurse forever.
SymlinkLoop(String)
Resolving a symbolic link exceeded the depth cap (a loop).
AttachedObject(ObjectId)
The object still has a parent; detach it before attaching elsewhere.
CyclicAttach(ObjectId)
Attaching the object beneath itself (or one of its descendants) would create a parent cycle.
RootMove
The root object cannot be moved.
RootDelete
The root object cannot be deleted.
RootDetach
The root object cannot be detached.
NotAuthorized
The current actor is not authorized to perform the operation.
Trait Implementations§
impl Eq for Error
Source§impl Error for Error
impl Error for Error
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()