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:
@ -1,7 +1,6 @@
|
||||
import { CustomException } from 'src/utils/custom-exception';
|
||||
|
||||
export class CalendarEventImportDriverException extends CustomException {
|
||||
code: CalendarEventImportDriverExceptionCode;
|
||||
constructor(message: string, code: CalendarEventImportDriverExceptionCode) {
|
||||
super(message, code);
|
||||
}
|
||||
|
||||
@ -1,7 +1,6 @@
|
||||
import { CustomException } from 'src/utils/custom-exception';
|
||||
|
||||
export class CalendarEventImportException extends CustomException {
|
||||
code: CalendarEventImportExceptionCode;
|
||||
constructor(message: string, code: CalendarEventImportExceptionCode) {
|
||||
super(message, code);
|
||||
}
|
||||
|
||||
@ -1,7 +1,6 @@
|
||||
import { CustomException } from 'src/utils/custom-exception';
|
||||
|
||||
export class RefreshAccessTokenException extends CustomException {
|
||||
code: RefreshAccessTokenExceptionCode;
|
||||
constructor(message: string, code: RefreshAccessTokenExceptionCode) {
|
||||
super(message, code);
|
||||
}
|
||||
|
||||
@ -1,11 +1,8 @@
|
||||
import { CustomException } from 'src/utils/custom-exception';
|
||||
|
||||
export class MessageImportDriverException extends CustomException {
|
||||
code: MessageImportDriverExceptionCode;
|
||||
|
||||
constructor(message: string, code: MessageImportDriverExceptionCode) {
|
||||
super(message, code);
|
||||
this.code = code;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@ -1,7 +1,6 @@
|
||||
import { CustomException } from 'src/utils/custom-exception';
|
||||
|
||||
export class MessageImportException extends CustomException {
|
||||
code: MessageImportExceptionCode;
|
||||
constructor(message: string, code: MessageImportExceptionCode) {
|
||||
super(message, code);
|
||||
}
|
||||
|
||||
@ -1,7 +1,6 @@
|
||||
import { CustomException } from 'src/utils/custom-exception';
|
||||
|
||||
export class WorkflowStepExecutorException extends CustomException {
|
||||
code: WorkflowStepExecutorExceptionCode;
|
||||
constructor(message: string, code: WorkflowStepExecutorExceptionCode) {
|
||||
super(message, code);
|
||||
}
|
||||
|
||||
@ -1,7 +1,6 @@
|
||||
import { CustomException } from 'src/utils/custom-exception';
|
||||
|
||||
export class SendEmailActionException extends CustomException {
|
||||
code: SendEmailActionExceptionCode;
|
||||
constructor(message: string, code: SendEmailActionExceptionCode) {
|
||||
super(message, code);
|
||||
}
|
||||
|
||||
@ -1,7 +1,6 @@
|
||||
import { CustomException } from 'src/utils/custom-exception';
|
||||
|
||||
export class RecordCRUDActionException extends CustomException {
|
||||
code: RecordCRUDActionExceptionCode;
|
||||
constructor(message: string, code: RecordCRUDActionExceptionCode) {
|
||||
super(message, code);
|
||||
}
|
||||
|
||||
@ -1,7 +1,6 @@
|
||||
import { CustomException } from 'src/utils/custom-exception';
|
||||
|
||||
export class WorkflowRunException extends CustomException {
|
||||
code: WorkflowRunExceptionCode;
|
||||
constructor(message: string, code: WorkflowRunExceptionCode) {
|
||||
super(message, code);
|
||||
}
|
||||
|
||||
@ -1,7 +1,6 @@
|
||||
import { CustomException } from 'src/utils/custom-exception';
|
||||
|
||||
export class WorkflowTriggerException extends CustomException {
|
||||
code: WorkflowTriggerExceptionCode;
|
||||
constructor(message: string, code: WorkflowTriggerExceptionCode) {
|
||||
super(message, code);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user