hytopia
Version:
The HYTOPIA SDK makes it easy for developers to create massively multiplayer games using JavaScript or TypeScript.
82 lines (38 loc) • 1.09 kB
Markdown
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
[Home](./index.md) > [server](./server.md) > [ErrorHandler](./server.errorhandler.md)
## ErrorHandler class
Manages error and warning logging.
**Signature:**
```typescript
export default class ErrorHandler
```
## Methods
<table><thead><tr><th>
Method
</th><th>
Modifiers
</th><th>
Description
</th></tr></thead>
<tbody><tr><td>
[error(message, context)](./server.errorhandler.error.md)
</td><td>
`static`
</td><td>
Logs a formatted error message with stack trace to help debug issues
</td></tr>
<tr><td>
[fatalError(message, context)](./server.errorhandler.fatalerror.md)
</td><td>
`static`
</td><td>
Logs a formatted fatal error message with stack trace and throws the error
</td></tr>
<tr><td>
[warning(message, context)](./server.errorhandler.warning.md)
</td><td>
`static`
</td><td>
Logs a formatted warning message to alert about potential issues
</td></tr>
</tbody></table>