We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 433f6cf + afb3454 commit 544acf0Copy full SHA for 544acf0
content/microservices/exception-filters.md
@@ -30,7 +30,7 @@ import { RpcException } from '@nestjs/microservices';
30
@Catch(RpcException)
31
export class ExceptionFilter implements RpcExceptionFilter<RpcException> {
32
catch(exception: RpcException, host: ArgumentsHost): Observable<any> {
33
- return throwError(exception.getError());
+ return throwError(() => exception.getError());
34
}
35
36
@@switch
@@ -40,7 +40,7 @@ import { throwError } from 'rxjs';
40
41
export class ExceptionFilter {
42
catch(exception, host) {
43
44
45
46
```
0 commit comments