Skip to main content

Module CoreError

Module CoreError 

Source
Expand description

§Core Error Types (local, superseded)

Base building blocks of Mountain’s error taxonomy. Defines five core types: ErrorSeverity, ErrorKind, ErrorContext, MountainError, and a generic Result<T> alias. The five per-domain sibling modules (IPCError, FileSystemError, ConfigurationError, ProviderError, ServiceError) wrap an ErrorContext and converge on MountainError via a From impl.

§Status

Zero callers as of 2026-05-02. These types are superseded by CommonLibrary::Error::CommonError. The module remains in place so that a future migration back to per-domain error types can pick up the existing constructors without rebuilding them. Do not add new callers - use CommonError directly.

Structs§

ErrorContext
Companion metadata attached to every MountainError. Carries the human-readable message, categorization via ErrorKind and ErrorSeverity, and optional operation/component context for log aggregation.
MountainError
Base error type for Mountain, wrapping an ErrorContext with optional raw source text and an optional stack trace snapshot.

Enums§

ErrorKind
Top-level error category assigned to every error at construction time. Used for routing, filtering, and aggregation in log sinks.
ErrorSeverity
Severity level of an error, used to categorize the impact of an error from informational to critical.

Type Aliases§

Result
Result type alias for Mountain operations.