pub enum StorageError {
Show 20 variants
NoDataDir,
NoConfigDir,
Io(Error),
Json(Error),
InvalidUtf8(Utf8Error),
EmptyImage,
InvalidHash,
InvalidDocumentConversion(String),
ImageNotFound(String),
ThreadNotFound(String),
WorkspaceNotFound(String),
InvalidWorkspaceName,
InvalidWorkspacePath(String),
InvalidThreadMessage(String),
ProfileNotFound(String),
CannotDeleteLastProfile,
InvalidProfileId(String),
AuthState(String),
KeyStore(String),
InvalidOcrModel(String),
}Expand description
Storage error types.
Variants§
NoDataDir
No data directory found.
NoConfigDir
Failed to locate the user’s config directory.
Io(Error)
IO error.
Json(Error)
JSON serialization error.
InvalidUtf8(Utf8Error)
A locally parsed text attachment must contain valid UTF-8.
EmptyImage
Empty image provided.
InvalidHash
Invalid hash format.
InvalidDocumentConversion(String)
A persisted Office-to-PDF conversion receipt is invalid.
ImageNotFound(String)
Image not found.
ThreadNotFound(String)
Thread not found.
WorkspaceNotFound(String)
Workspace not found.
InvalidWorkspaceName
Workspace names must contain at least one non-whitespace character.
InvalidWorkspacePath(String)
Workspace path is invalid or too broad to use as an AI sandbox.
InvalidThreadMessage(String)
Persisted message IDs must use the msg-<UUID> contract.
ProfileNotFound(String)
Profile with the given ID was not found.
CannotDeleteLastProfile
Cannot delete the last remaining profile.
InvalidProfileId(String)
Profile ID is invalid.
AuthState(String)
Stored auth state is unsupported or invalid.
KeyStore(String)
Encrypted key-store structure, locking, or target safety failure.
InvalidOcrModel(String)
Unsupported OCR annotations key.
Trait Implementations§
Source§impl Debug for StorageError
impl Debug for StorageError
Source§impl Display for StorageError
impl Display for StorageError
Source§impl Error for StorageError
impl Error for StorageError
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()