pub enum WorkspaceError {
BrokerDenied(String),
FileNotFound(String),
PermissionDenied(String),
UnsupportedFormat(String),
DocumentTooLarge(String),
Io(String),
Encoding(String),
WriteConflict(String),
Dialog(String),
Watch(String),
Persistence(String),
Other(String),
}Expand description
Typed error codes for frontend-facing command failures. The serialized shape
({"code": "...", "message": "..."}) is the contract the renderer classifies on.
Variants§
BrokerDenied(String)
The path-grant broker denied access to the requested path.
FileNotFound(String)
The file was not found on disk.
PermissionDenied(String)
The OS denied access to a location. The message is user-facing.
UnsupportedFormat(String)
The file type is not supported.
DocumentTooLarge(String)
The document is too large to open or save safely.
Io(String)
An I/O error occurred.
Encoding(String)
The encoding could not be determined or applied.
WriteConflict(String)
The source changed after it was opened and before an in-place save committed.
Dialog(String)
A dialog operation was cancelled or failed.
Watch(String)
The filesystem watcher could not be armed or torn down.
Persistence(String)
The local SQLite persistence layer failed (query, migration, or lock).
Other(String)
A generic error that does not fit the other categories.
Trait Implementations§
Source§impl Clone for WorkspaceError
impl Clone for WorkspaceError
Source§impl Debug for WorkspaceError
impl Debug for WorkspaceError
Source§impl Display for WorkspaceError
impl Display for WorkspaceError
impl Eq for WorkspaceError
Source§impl Error for WorkspaceError
impl Error for WorkspaceError
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()