pub enum OpenClawError {
ConfigParse {
path: String,
reason: String,
},
WorkspaceNotFound {
id: String,
},
DocRead {
path: String,
source: Error,
},
DocWrite {
path: String,
source: Error,
},
Validation {
reason: String,
},
Io {
path: String,
source: Error,
},
}Expand description
Errors that can occur in the agentry-openclaw crate.
Variants§
ConfigParse
Failed to parse an OpenClaw configuration file.
WorkspaceNotFound
The requested workspace was not found.
DocRead
Failed to read a documentation file.
DocWrite
Failed to write a documentation file.
Validation
A validation check failed.
Io
General I/O error associated with a specific path.
Trait Implementations§
Source§impl Debug for OpenClawError
impl Debug for OpenClawError
Source§impl Display for OpenClawError
impl Display for OpenClawError
Source§impl Error for OpenClawError
impl Error for OpenClawError
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()
Auto Trait Implementations§
impl !RefUnwindSafe for OpenClawError
impl !UnwindSafe for OpenClawError
impl Freeze for OpenClawError
impl Send for OpenClawError
impl Sync for OpenClawError
impl Unpin for OpenClawError
impl UnsafeUnpin for OpenClawError
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