Module error

Module error 

Source
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§

ErrorRecoveryManager
Manager for applying error recovery strategies.

Enums§

CommandError
Errors that can occur during command execution.
ConfigError
Errors that can occur during configuration operations.
Error
General error type for the standard tools library.
FileSystemError
Errors that can occur during filesystem operations.
LogLevel
Log level for structured logging.
MonorepoError
Errors that can occur during monorepo operations.
RecoveryResult
Recovery result after applying a recovery strategy.
RecoveryStrategy
Recovery strategies for error handling.
WorkspaceError
Errors that can occur during workspace operations.

Traits§

ErrorContext
Error context trait for adding contextual information to errors.

Type Aliases§

CommandResult
Result type for command operations.
ConfigResult
Result type for configuration operations.
FileSystemResult
Result type for filesystem operations.
MonorepoResult
Result type for monorepo operations.
Result
Result type for general operations in the standard tools library.
WorkspaceResult
Result type for workspace operations.