Fix custom exceptions not propagating error code (#10210)

## Context
In some CustomException exceptions, we were instantiating a code without
initializing it which was overriding the parent code and it was then
lost when retrieving it in filters.
Removing them to make sure we don't reproduce this pattern
This commit is contained in:
Weiko
2025-02-14 10:27:47 +01:00
committed by GitHub
parent ea07692abb
commit 934a97df51
32 changed files with 0 additions and 34 deletions

View File

@ -1,7 +1,6 @@
import { CustomException } from 'src/utils/custom-exception';
export class ServerlessFunctionException extends CustomException {
code: ServerlessFunctionExceptionCode;
constructor(message: string, code: ServerlessFunctionExceptionCode) {
super(message, code);
}