Module error

Source
Expand description

§error, the module that provides basic structures for error handling

Error handling is essential when writing an assembler or compiler. Without proper error enums or descriptive error documentation, it can be very difficult for compiler-writers to understand how to interface with error messages.

Additionally, because this assembler also functions as a library, keeping error handling elegant is crucial. As such, I’ve tried to make error handling as simple as possible.

Enums§

Error
The Error type is used when assembling and parsing an assembly file

Type Aliases§

Result
The Result type is shorthand for a result that uses the Error enum as the Err type. The Error type is just used as the general crate-wide Error type.