<!-- Do not edit this file. It is automatically generated by API Documenter. -->

[Home](./index.md) &gt; [server](./server.md) &gt; [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>
