pub enum AgentSdkError {
ApiError(ApiError),
NetworkError(Error),
SerializationError(Error),
IoError(Error),
ToolCallError(String),
ConfigError(String),
BuilderError(UninitializedFieldError),
}Variants§
ApiError(ApiError)
NetworkError(Error)
SerializationError(Error)
IoError(Error)
ToolCallError(String)
ConfigError(String)
BuilderError(UninitializedFieldError)
Implementations§
Source§impl AgentSdkError
impl AgentSdkError
Sourcepub fn status_code(&self) -> Option<StatusCode>
pub fn status_code(&self) -> Option<StatusCode>
Returns the HTTP status code if the error was caused by a non-success HTTP response.
Trait Implementations§
Source§impl Debug for AgentSdkError
impl Debug for AgentSdkError
Source§impl Display for AgentSdkError
impl Display for AgentSdkError
Source§impl Error for AgentSdkError
impl Error for AgentSdkError
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<ApiError> for AgentSdkError
impl From<ApiError> for AgentSdkError
Source§impl From<Error> for AgentSdkError
impl From<Error> for AgentSdkError
Source§impl From<Error> for AgentSdkError
impl From<Error> for AgentSdkError
Source§impl From<Error> for AgentSdkError
impl From<Error> for AgentSdkError
Source§impl From<UninitializedFieldError> for AgentSdkError
impl From<UninitializedFieldError> for AgentSdkError
Source§fn from(source: UninitializedFieldError) -> Self
fn from(source: UninitializedFieldError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for AgentSdkError
impl !UnwindSafe for AgentSdkError
impl Freeze for AgentSdkError
impl Send for AgentSdkError
impl Sync for AgentSdkError
impl Unpin for AgentSdkError
impl UnsafeUnpin for AgentSdkError
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
impl<T> Component for 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> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<T> ValidateIp for Twhere
T: ToString,
impl<T> ValidateIp for Twhere
T: ToString,
Source§fn validate_ipv4(&self) -> bool
fn validate_ipv4(&self) -> bool
Validates whether the given string is an IP V4
Source§fn validate_ipv6(&self) -> bool
fn validate_ipv6(&self) -> bool
Validates whether the given string is an IP V6
Source§fn validate_ip(&self) -> bool
fn validate_ip(&self) -> bool
Validates whether the given string is an IP