Skip to main content

Module error

Module error 

Source
Expand description

§Service Layer Error Types

Comprehensive error handling for the Thread service layer using Tower’s BoxError pattern for unified error handling and improved performance. This design enables composable service layers while maintaining excellent error context and recovery capabilities.

Structs§

ContextualError
Enhanced error type that includes context information
ErrorContext
Context information for errors
ErrorRecovery
Error recovery information

Enums§

AnalysisError
Errors related to code analysis and pattern matching
ParseError
Errors related to parsing source code into ASTs with performance optimization
RecoveryStrategy
Error recovery strategies
ServiceError
Main error type for service layer operations with optimized string handling
StorageError
Errors related to storage operations (commercial boundary)

Traits§

ErrorContextExt
Helper trait for adding context to errors
RecoverableError
Trait for errors that support recovery

Type Aliases§

BoxError
ContextualResult
Result type for contextual operations
LegacyServiceResult
Compatibility type for legacy ServiceError usage
ServiceResult
Service result type using Tower’s BoxError pattern for unified error handling