pub enum SDKError {
Authentication(AuthenticationError),
Api(ApiError),
Network(NetworkError),
Streaming(StreamingError),
Tool(ToolError),
Validation(ValidationError),
}Expand description
The primary error type for the Jules SDK.
Variants§
Authentication(AuthenticationError)
Authentication errors (e.g., missing API key, invalid token).
Api(ApiError)
API errors returned by the Jules API.
Network(NetworkError)
Network errors (e.g., connection failed, timeout).
Streaming(StreamingError)
Streaming errors (e.g., unexpected stream termination).
Tool(ToolError)
Tool calling errors.
Validation(ValidationError)
Validation errors (e.g., invalid configuration).
Trait Implementations§
Source§impl Error for SDKError
impl Error for SDKError
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<AuthenticationError> for SDKError
impl From<AuthenticationError> for SDKError
Source§fn from(err: AuthenticationError) -> Self
fn from(err: AuthenticationError) -> Self
Converts to this type from the input type.
Source§impl From<NetworkError> for SDKError
impl From<NetworkError> for SDKError
Source§fn from(err: NetworkError) -> Self
fn from(err: NetworkError) -> Self
Converts to this type from the input type.
Source§impl From<StreamingError> for SDKError
impl From<StreamingError> for SDKError
Source§fn from(err: StreamingError) -> Self
fn from(err: StreamingError) -> Self
Converts to this type from the input type.
Source§impl From<ValidationError> for SDKError
impl From<ValidationError> for SDKError
Source§fn from(err: ValidationError) -> Self
fn from(err: ValidationError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for SDKError
impl RefUnwindSafe for SDKError
impl Send for SDKError
impl Sync for SDKError
impl Unpin for SDKError
impl UnsafeUnpin for SDKError
impl UnwindSafe for SDKError
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