diff --git a/api/src/common/Exception.ts b/api/src/common/Exception.ts index 0fa98e741a1..5539b7e9f31 100644 --- a/api/src/common/Exception.ts +++ b/api/src/common/Exception.ts @@ -15,21 +15,21 @@ */ interface ExceptionWithCode { - code: string; + code: string | number; name?: string; message?: string; stack?: string; } interface ExceptionWithMessage { - code?: string; + code?: string | number; message: string; name?: string; stack?: string; } interface ExceptionWithName { - code?: string; + code?: string | number; message?: string; name: string; stack?: string;