ZHRXXLib
  • Quickstart
  • modules
    • error
      • ErrorSeverity
    • event
    • utils
      • logger
      • os_
      • requests
      • buffer
      • useful
Powered by GitBook
On this page
  1. modules

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.

PreviousQuickstartNextErrorSeverity

Last updated 8 months ago