Skip to content

Latest commit

 

History

History
69 lines (33 loc) · 853 Bytes

File metadata and controls

69 lines (33 loc) · 853 Bytes

Home > server > ErrorHandler > error

ErrorHandler.error() method

Logs a formatted error message with stack trace to help debug issues

Signature:

static error(message: string, context?: string): void;

Parameters

Parameter

Type

Description

message

string

The error message to display

context

string

(Optional) Optional context information about the error

**Returns:**

void