hytopia
Version:
The HYTOPIA SDK makes it easy for developers to create massively multiplayer games using JavaScript or TypeScript.
70 lines (33 loc) • 861 B
Markdown
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
[Home](./index.md) > [server](./server.md) > [ErrorHandler](./server.errorhandler.md) > [warning](./server.errorhandler.warning.md)
## ErrorHandler.warning() method
Logs a formatted warning message to alert about potential issues
**Signature:**
```typescript
static warning(message: string, context?: string): void;
```
## 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 warning message to display
</td></tr>
<tr><td>
context
</td><td>
string
</td><td>
_(Optional)_ Optional context information about the warning
</td></tr>
</tbody></table>
**Returns:**
void