pub enum PawanError {
Io(Error),
Config(String),
Tool(String),
Agent(String),
Llm(String),
Git(String),
Parse(String),
Timeout(String),
NotFound(String),
}Expand description
Error types for Pawan
Represents all possible error conditions that can occur in Pawan operations.
Variants§
Io(Error)
I/O error
Represents errors related to file operations, network operations, or other I/O.
Config(String)
Configuration error
Represents errors in Pawan configuration, such as invalid settings or missing required values.
Tool(String)
Tool execution error
Represents errors that occur when executing tools (file operations, bash commands, etc.).
Agent(String)
Agent error
Represents errors in the agent’s logic or execution flow.
Llm(String)
LLM error
Represents errors from the language model backend or API.
Git(String)
Git error
Represents errors from Git operations.
Parse(String)
Parse error
Represents errors in parsing JSON, TOML, or other structured data.
Timeout(String)
Timeout error
Represents errors when an operation exceeds its time limit.
NotFound(String)
Not found error
Represents errors when a requested resource (file, tool, etc.) is not found.
Trait Implementations§
Source§impl Debug for PawanError
impl Debug for PawanError
Source§impl Display for PawanError
impl Display for PawanError
Source§impl Error for PawanError
impl Error for PawanError
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()
Auto Trait Implementations§
impl Freeze for PawanError
impl !RefUnwindSafe for PawanError
impl Send for PawanError
impl Sync for PawanError
impl Unpin for PawanError
impl UnsafeUnpin for PawanError
impl !UnwindSafe for PawanError
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<T> ToStringFallible for Twhere
T: Display,
impl<T> ToStringFallible for Twhere
T: Display,
Source§fn try_to_string(&self) -> Result<String, TryReserveError>
fn try_to_string(&self) -> Result<String, TryReserveError>
ToString::to_string, but without panic on OOM.