> For the complete documentation index, see [llms.txt](https://zxdocs.gitbook.io/zhrxxlib/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://zxdocs.gitbook.io/zhrxxlib/modules/error.md).

# error

* `ErrorSeverity`

An enum representing the severity of errors: `Fatal` and `Warning`.

* `Errors`

A struct that manages a collection of errors.

* `new()`

Creates a new `Errors` instance.

* `get_errors(&self) -> &HashMap<String, String>`

Returns a reference to the map of recorded errors.

* `throwError(&mut self, name: &str, severity: ErrorSeverity)`

Records an error with the specified name and severity.
