Expand description
Contain the definition for errors with all additional data that is needed to generate nice error messages
Structs§
- Boxed
Error - An error. Stored as a pointer to a structure on the heap to prevent large sizes which could be detrimental to performance for the happy path.
- Combine
Errors - An iterator adapter that keeps track separately of the errors to merge ones that can be merged.
The errors have to be retrieved separately using
Self::errors. - Context
- A context construct to indicate a context presumably in a file, but could be in any kind of source text
- Custom
Error - File
Position - A position in a file for use in parsing/lexing
- Highlight
- A highlight on a single line. The easiest way of creating these is by using the From implementations.
Enums§
Traits§
- Combine
Errors Extender - An iterator adapter that keeps track separately of the errors to merge ones that can be merged.
The errors have to be retrieved separately using [
Self::errors]. - Create
Error - A trait to guarantee identical an API between the boxed and unboxed error version
- Error
Kind - The kind of an error
- Full
Error Content - A structure that contains all error content
- Static
Error Content - A structure that contains basic error content
Functions§
- combine_
error - Combine a new error into a stack of existing errors. This merges errors that can be merged to be able to show a terser error if the same error happened multiple times in the same file.
- combine_
errors - Combine a list full of error into the list of already existing errors.