pub enum SequentialThinkingError {
Show 15 variants
InvalidThoughtData {
message: String,
},
ProcessingError {
message: String,
},
SessionError {
message: String,
},
BranchError {
message: String,
},
ValidationError {
message: String,
},
ConfigError {
message: String,
},
SerializationError {
message: String,
},
TransportError {
message: String,
},
InternalError {
message: String,
},
NotFound {
resource: String,
},
PermissionDenied {
reason: String,
},
RateLimitExceeded {
limit: String,
},
Timeout {
duration: Duration,
},
Cancelled {
reason: String,
},
Wrapped {
source: Box<dyn Error + Send + Sync>,
},
}
Expand description
Main error type for sequential thinking operations
Variants§
InvalidThoughtData
Invalid thought data
ProcessingError
Thought processing error
SessionError
Session management error
BranchError
Branch management error
ValidationError
Validation error
ConfigError
Configuration error
SerializationError
Serialization/deserialization error
TransportError
Network/transport error
InternalError
Internal system error
NotFound
Resource not found
PermissionDenied
Permission denied
RateLimitExceeded
Rate limiting error
Timeout
Timeout error
Cancelled
Cancellation error
Wrapped
Wrapped error from underlying dependencies
Implementations§
Source§impl SequentialThinkingError
impl SequentialThinkingError
Sourcepub fn invalid_thought_data(message: impl Into<String>) -> Self
pub fn invalid_thought_data(message: impl Into<String>) -> Self
Create an invalid thought data error
Sourcepub fn processing_error(message: impl Into<String>) -> Self
pub fn processing_error(message: impl Into<String>) -> Self
Create a processing error
Sourcepub fn session_error(message: impl Into<String>) -> Self
pub fn session_error(message: impl Into<String>) -> Self
Create a session error
Sourcepub fn branch_error(message: impl Into<String>) -> Self
pub fn branch_error(message: impl Into<String>) -> Self
Create a branch error
Sourcepub fn validation_error(message: impl Into<String>) -> Self
pub fn validation_error(message: impl Into<String>) -> Self
Create a validation error
Sourcepub fn config_error(message: impl Into<String>) -> Self
pub fn config_error(message: impl Into<String>) -> Self
Create a configuration error
Sourcepub fn serialization_error(message: impl Into<String>) -> Self
pub fn serialization_error(message: impl Into<String>) -> Self
Create a serialization error
Sourcepub fn transport_error(message: impl Into<String>) -> Self
pub fn transport_error(message: impl Into<String>) -> Self
Create a transport error
Sourcepub fn internal_error(message: impl Into<String>) -> Self
pub fn internal_error(message: impl Into<String>) -> Self
Create an internal error
Sourcepub fn permission_denied(reason: impl Into<String>) -> Self
pub fn permission_denied(reason: impl Into<String>) -> Self
Create a permission denied error
Sourcepub fn rate_limit_exceeded(limit: impl Into<String>) -> Self
pub fn rate_limit_exceeded(limit: impl Into<String>) -> Self
Create a rate limit error
Sourcepub fn is_retryable(&self) -> bool
pub fn is_retryable(&self) -> bool
Check if this is a retryable error
Sourcepub fn is_client_error(&self) -> bool
pub fn is_client_error(&self) -> bool
Check if this is a client error (not retryable)
Sourcepub fn is_server_error(&self) -> bool
pub fn is_server_error(&self) -> bool
Check if this is a server error (potentially retryable)
Sourcepub fn user_message(&self) -> String
pub fn user_message(&self) -> String
Get a user-friendly error message
Sourcepub fn error_code(&self) -> &'static str
pub fn error_code(&self) -> &'static str
Get error code for API responses
Trait Implementations§
Source§impl Debug for SequentialThinkingError
impl Debug for SequentialThinkingError
Source§impl Display for SequentialThinkingError
impl Display for SequentialThinkingError
Source§impl Error for SequentialThinkingError
impl Error for SequentialThinkingError
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
Source§impl From<Error> for SequentialThinkingError
impl From<Error> for SequentialThinkingError
Source§impl From<Error> for SequentialThinkingError
impl From<Error> for SequentialThinkingError
Source§impl From<Error> for SequentialThinkingError
impl From<Error> for SequentialThinkingError
Source§impl From<ParseError> for SequentialThinkingError
impl From<ParseError> for SequentialThinkingError
Source§fn from(err: ParseError) -> Self
fn from(err: ParseError) -> Self
Auto Trait Implementations§
impl Freeze for SequentialThinkingError
impl !RefUnwindSafe for SequentialThinkingError
impl Send for SequentialThinkingError
impl Sync for SequentialThinkingError
impl Unpin for SequentialThinkingError
impl !UnwindSafe for SequentialThinkingError
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> 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.