Description

Global exception filter that catches all exceptions and returns a structured JSON response with status, code, hint, path, and meta fields. Supports HTTP and WebSocket transports; RPC is unsupported and throws UnsupportedProtocolError.

Example

app.useGlobalFilters(new AllExceptionsFilter());

Implements

  • ExceptionFilter

Constructors

Properties

exception: Error
host: ArgumentsHost
type: ContextType

Accessors

Methods