pub enum ErrorCode {
Show 15 variants
InvalidPathOrName,
NotFound,
AlreadyExists,
WrongNodeType,
DirectoryNotEmpty,
LinkLoop,
BrokenLink,
WorkspaceBoundaryViolation,
PermissionDenied,
RevisionConflict,
QuotaExceeded,
InvalidRange,
InvalidCursor,
StorageBusy,
InternalStorageFailure,
}Expand description
A stable, transport-independent category for filesystem failures.
Variants§
InvalidPathOrName
A path or node name is invalid.
NotFound
A requested node or resource does not exist.
AlreadyExists
Creating or restoring a resource would collide with an existing one.
WrongNodeType
An operation does not support the target node kind.
DirectoryNotEmpty
A directory cannot be removed because it has children.
LinkLoop
Resolving a symbolic link exceeded the permitted number of links.
BrokenLink
A symbolic link target does not exist.
WorkspaceBoundaryViolation
An operation attempted to cross a workspace isolation boundary.
PermissionDenied
The caller is not permitted to perform the requested operation.
RevisionConflict
An optimistic concurrency precondition did not match the current revision.
QuotaExceeded
The operation would exceed a configured quota.
InvalidRange
A byte range is malformed or outside the target content.
InvalidCursor
A pagination cursor is malformed or belongs to another workspace.
StorageBusy
The storage backend is temporarily unavailable.
InternalStorageFailure
The storage backend encountered an unexpected internal failure.