pub enum IFlowError {
}Expand description
Main error type for iFlow SDK
This enum encompasses all possible errors that can occur when using the iFlow SDK.
Variants§
Connection(String)
Connection related errors
Protocol(String)
Protocol related errors
Authentication(String)
Authentication related errors
Timeout(String)
Timeout related errors
ToolCall(String)
Tool call related errors
Validation(String)
Validation related errors
Transport(String)
Transport related errors
JsonParse(Error)
JSON parsing errors
WebSocket(String)
WebSocket related errors (deprecated)
Io(Error)
IO related errors
ProcessManager(String)
Process manager related errors
NotConnected
Not connected error
SessionNotFound
Session not found error
InvalidMessage(String)
Invalid message format error
Unknown(String)
Unknown error
Trait Implementations§
Source§impl Debug for IFlowError
impl Debug for IFlowError
Source§impl Display for IFlowError
impl Display for IFlowError
Source§impl Error for IFlowError
impl Error for IFlowError
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 IFlowError
impl From<Error> for IFlowError
Auto Trait Implementations§
impl Freeze for IFlowError
impl !RefUnwindSafe for IFlowError
impl Send for IFlowError
impl Sync for IFlowError
impl Unpin for IFlowError
impl !UnwindSafe for IFlowError
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