Skip to content

ErrorHandler

This is Basalt's error handler. All the errors are handled by this module.

Fields

FieldTypeDescription
tracebackEnabledbooleanIf the error handler should print a stack trace
headerstringThe header of the error message

Functions

MethodReturnsDescription
errorHandler.error-

errorHandler.error(errMsg)

Handles an error

Parameters

  • errMsg string The error message

Usage

lua
errorHandler.error("An error occurred")
errorHandler.error("An error occurred")

Released under the MIT License.