Skip to main content

Module error

Module error 

Source
Expand description

The library’s error type and its mapping to process exit classes.

Every error says what failed and where (source, record, line, column, byte), and most carry a hint telling the user how to fix it. Front ends render the error with DimaError::report (GUI) or line by line (error: / caused by: / hint:, CLI), and map DimaError::class to the documented exit codes.

Structs§

Location
A position in an input stream. Every field except source is optional because not every error has every coordinate.

Enums§

DimaError
Every error the library reports.
ExitClass
Exit classes of the command-line interface (documented exit codes).
IoAction
What an I/O operation was doing when it failed.
IoTarget
The file or stream an I/O operation used.

Constants§

THREAD_LIMIT_HINT
What to do when the system refuses threads, for this platform: the hint of DimaError::System and of the front ends’ warning when a run continues with fewer threads than requested (D110).

Type Aliases§

Result
Convenience alias used throughout the library.