This commit is contained in:
NoryiE
2025-09-13 20:28:52 +00:00
parent 9e1112f3bd
commit 4ccefcac9f
48 changed files with 3036 additions and 1565 deletions

View File

@@ -1,29 +1,20 @@
# ErrorHandler
This is Basalt's error handler. All the errors are handled by this module.
## Fields
|Field|Type|Description|
|---|---|---|
|tracebackEnabled|`boolean`|If the error handler should print a stack trace|
|header|`string`|The header of the error message|
_This is Basalt's error handler. All the errors are handled by this module._
## Functions
|Method|Returns|Description|
|---|---|---|
|[errorHandler.error](#errorhandler-error)|-|
|[ErrorHandler.error](#errorhandler-error-errmsg)|-|Handles an error|
## ErrorHandler.error(errMsg)
## errorHandler.error(errMsg)
Handles an error
### Parameters
* `errMsg` `string` The error message
### Usage
```lua
```lua
errorHandler.error("An error occurred")
```