Skip to main content

Module CoreError

Module CoreError 

Source
Expand description

§Core Error Types (local, dead-code stack)

Base building blocks of Mountain’s local error taxonomy. Five per-domain sibling modules (IPCError, FileSystemError, ConfigurationError, ProviderError, ServiceError) wrap an ErrorContext and converge on MountainError via a From impl.

TODO atomic split: this file is NOT atomized into one-symbol-per- file because the five sibling modules each construct ErrorContext { context: ..., severity: ..., kind: ... } literally, and call .with_kind / .with_severity / .with_operation. Splitting ErrorContext/MountainError into Struct-renamed atoms would require renaming every field+method across ~700 lines of dead code. Defer until the whole stack is either deleted or migrated to CommonLibrary::Error::CommonError.

TODO: zero callers as of 2026-05-02 - superseded by CommonLibrary::Error::CommonError.

Structs§

ErrorContext
Companion metadata attached to every MountainError.
MountainError
Base Mountain error type.

Enums§

ErrorKind
Top-level error category.
ErrorSeverity
Severity level of an error

Type Aliases§

Result
Result type alias for Mountain operations.