You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: apps/content/docs/integrations/nest.mdx
+18-1Lines changed: 18 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -98,7 +98,24 @@ When you use the `@Implement` decorator with a router contract, under the hood i
98
98
99
99
## Error Handling
100
100
101
-
By default, errors thrown in implemented procedures are caught and handled by oRPC, which then rethrows a generic `HttpException` to NestJS. If you want NestJS to catch the original error instead of `HttpException`, use the [Rethrow Plugin](/docs/plugins/rethrow) to bypass oRPC error handling and let NestJS handle the error directly.
101
+
By default, errors thrown in implemented procedures are caught and handled by oRPC, which then rethrows an `ORPCHttpException` (a subclass of `HttpException`) to NestJS. If you want NestJS to catch the original error instead, use the [Rethrow Plugin](/docs/plugins/rethrow) to bypass oRPC error handling and let NestJS handle the error directly.
102
+
103
+
An exception filter that catches everything replaces the oRPC error response unless it delegates `ORPCHttpException` to NestJS:
Learn how to customize input and output validation errors in [Validation Errors](/docs/recipes/validation-customization#custom-validation-errors) and the [ORPCModule](#configuration) section.
0 commit comments