# 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.
