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.
app.useGlobalFilters(new AllExceptionsFilter()); Copy
app.useGlobalFilters(new AllExceptionsFilter());
Protected
Private
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