Expand description
§Error handling for sublime_standard_tools
§What
This module provides comprehensive error types for various operations within the crate. It implements specific error types for different domains, such as filesystem operations, command execution, and project management.
§How
Each domain has its own error type (e.g., FileSystemError) that implements
the Error trait from the standard library and uses the thiserror crate
for concise error definitions. Result type aliases are provided for convenience.
§Why
A structured approach to error handling enables callers to handle errors appropriately based on their type and context, improving error reporting and recovery strategies. The consistent pattern makes error handling predictable across the crate.
Structs§
- Error
Recovery Manager - Manager for applying error recovery strategies.
Enums§
- Command
Error - Errors that can occur during command execution.
- Config
Error - Errors that can occur during configuration operations.
- Error
- General error type for the standard tools library.
- File
System Error - Errors that can occur during filesystem operations.
- LogLevel
- Log level for structured logging.
- Monorepo
Error - Errors that can occur during monorepo operations.
- Recovery
Result - Recovery result after applying a recovery strategy.
- Recovery
Strategy - Recovery strategies for error handling.
- Workspace
Error - Errors that can occur during workspace operations.
Traits§
- Error
Context - Error context trait for adding contextual information to errors.
Type Aliases§
- Command
Result - Result type for command operations.
- Config
Result - Result type for configuration operations.
- File
System Result - Result type for filesystem operations.
- Monorepo
Result - Result type for monorepo operations.
- Result
- Result type for general operations in the standard tools library.
- Workspace
Result - Result type for workspace operations.