pub enum ProjectsError {
StorageError(StorageError),
ProjectNotFound(String),
DocumentNotFound(String),
PermissionDenied(String),
InvalidOperation(String),
WorkflowError(String),
}Expand description
Comprehensive error types for project operations
Covers all possible failure modes in project management including storage failures, permission denials, and workflow violations.
Variants§
StorageError(StorageError)
Underlying storage system error
ProjectNotFound(String)
Project with specified ID does not exist
DocumentNotFound(String)
Document with specified ID does not exist
PermissionDenied(String)
User lacks required permissions for operation
InvalidOperation(String)
Operation is not valid in current context
WorkflowError(String)
Workflow validation or execution error
Trait Implementations§
Source§impl Debug for ProjectsError
impl Debug for ProjectsError
Source§impl Display for ProjectsError
impl Display for ProjectsError
Source§impl Error for ProjectsError
impl Error for ProjectsError
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<StorageError> for ProjectsError
impl From<StorageError> for ProjectsError
Source§fn from(source: StorageError) -> Self
fn from(source: StorageError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for ProjectsError
impl !RefUnwindSafe for ProjectsError
impl Send for ProjectsError
impl Sync for ProjectsError
impl Unpin for ProjectsError
impl !UnwindSafe for ProjectsError
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