pub struct ClaudeSDKError {
pub message: String,
}Expand description
General SDK error for validation and logic failures.
Used for errors that don’t fit into more specific categories, such as invalid configuration or callback errors.
Fields§
§message: StringHuman-readable error message.
Implementations§
Trait Implementations§
Source§impl Clone for ClaudeSDKError
impl Clone for ClaudeSDKError
Source§fn clone(&self) -> ClaudeSDKError
fn clone(&self) -> ClaudeSDKError
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ClaudeSDKError
impl Debug for ClaudeSDKError
Source§impl Display for ClaudeSDKError
impl Display for ClaudeSDKError
Source§impl Error for ClaudeSDKError
impl Error for ClaudeSDKError
1.30.0 · 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<ClaudeSDKError> for Error
impl From<ClaudeSDKError> for Error
Source§fn from(source: ClaudeSDKError) -> Self
fn from(source: ClaudeSDKError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for ClaudeSDKError
impl RefUnwindSafe for ClaudeSDKError
impl Send for ClaudeSDKError
impl Sync for ClaudeSDKError
impl Unpin for ClaudeSDKError
impl UnsafeUnpin for ClaudeSDKError
impl UnwindSafe for ClaudeSDKError
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