hytopia
Version:
The HYTOPIA SDK makes it easy for developers to create massively multiplayer games using JavaScript or TypeScript.
74 lines (35 loc) • 926 B
Markdown
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
[Home](./index.md) > [server](./server.md) > [ErrorHandler](./server.errorhandler.md) > [fatalError](./server.errorhandler.fatalerror.md)
## ErrorHandler.fatalError() method
Logs a formatted fatal error message with stack trace and throws the error
**Signature:**
```typescript
static fatalError(message: string, context?: string): never;
```
## Parameters
<table><thead><tr><th>
Parameter
</th><th>
Type
</th><th>
Description
</th></tr></thead>
<tbody><tr><td>
message
</td><td>
string
</td><td>
The error message to display
</td></tr>
<tr><td>
context
</td><td>
string
</td><td>
_(Optional)_ Optional context information about the error
</td></tr>
</tbody></table>
**Returns:**
never
## Exceptions
The created Error object