pub enum CommonError {
Show 22 variants
FileSystemIO {
Path: PathBuf,
Description: String,
},
FileSystemNotFound(PathBuf),
FileSystemPermissionDenied {
Path: PathBuf,
Reason: String,
},
FileSystemFileExists(PathBuf),
FileSystemNotADirectory(PathBuf),
FileSystemIsADirectory(PathBuf),
ConfigurationUpdate {
Key: String,
Description: String,
},
ConfigurationLoad {
Description: String,
},
InvalidArgument {
ArgumentName: String,
Reason: String,
},
NotImplemented {
FeatureName: String,
},
StateLockPoisoned {
Context: String,
},
IPCError {
Description: String,
},
CommandExecution {
CommandIdentifier: String,
Reason: String,
},
CommandNotFound {
Identifier: String,
},
ProviderRegistration {
ProviderType: String,
Reason: String,
},
ProviderInvocation {
ProviderIdentifier: String,
Reason: String,
},
TreeViewProviderNotFound {
ViewIdentifier: String,
},
ExternalServiceError {
ServiceName: String,
Description: String,
},
SecretsAccess {
Key: String,
Reason: String,
},
UserInterfaceInteraction {
Reason: String,
},
SerializationError {
Description: String,
},
Unknown {
Description: String,
},
}Expand description
A common error enum for the application, encompassing all major categories of failures that can occur during the execution of effects or other
Variants§
FileSystemIO
FileSystemNotFound(PathBuf)
FileSystemPermissionDenied
FileSystemFileExists(PathBuf)
FileSystemNotADirectory(PathBuf)
FileSystemIsADirectory(PathBuf)
ConfigurationUpdate
ConfigurationLoad
InvalidArgument
NotImplemented
StateLockPoisoned
IPCError
CommandExecution
CommandNotFound
ProviderRegistration
ProviderInvocation
TreeViewProviderNotFound
ExternalServiceError
SecretsAccess
UserInterfaceInteraction
SerializationError
Unknown
Implementations§
Source§impl CommonError
impl CommonError
Sourcepub fn FromStandardIOError(
IOError: Error,
Path: PathBuf,
OperationContext: &str,
) -> Self
pub fn FromStandardIOError( IOError: Error, Path: PathBuf, OperationContext: &str, ) -> Self
Creates a CommonError from a standard std::io::Error, mapping common
I/O error kinds to our specific FileSystem error variants for better
contextualization.
Trait Implementations§
Source§impl Clone for CommonError
impl Clone for CommonError
Source§fn clone(&self) -> CommonError
fn clone(&self) -> CommonError
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for CommonError
impl Debug for CommonError
Source§impl<'de> Deserialize<'de> for CommonError
impl<'de> Deserialize<'de> for CommonError
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for CommonError
impl Display for CommonError
Source§impl Error for CommonError
impl Error for CommonError
1.30.0 · 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<Error> for CommonError
Converts a serde_json::Error into a CommonError::SerializationError.
impl From<Error> for CommonError
Converts a serde_json::Error into a CommonError::SerializationError.
Source§impl From<Error> for CommonError
Converts a tauri::Error into a CommonError. This is useful for
handling errors from Tauri’s APIs within our effect system.
impl From<Error> for CommonError
Converts a tauri::Error into a CommonError. This is useful for
handling errors from Tauri’s APIs within our effect system.
Auto Trait Implementations§
impl Freeze for CommonError
impl RefUnwindSafe for CommonError
impl Send for CommonError
impl Sync for CommonError
impl Unpin for CommonError
impl UnwindSafe for CommonError
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