Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin' into activity-logs
Browse files Browse the repository at this point in the history
  • Loading branch information
dangtony98 committed Jan 1, 2023
2 parents 4dac65e + 0aff94c commit ce66e55
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions backend/src/utils/errors.ts
Original file line number Diff line number Diff line change
Expand Up @@ -123,4 +123,14 @@ export const SecretNotFoundError = (error?: Partial<RequestErrorContext>) => new
stack: error?.stack
});

//* ----->[ACTION ERRORS]<-----
export const ActionNotFoundError = (error?: Partial<RequestErrorContext>) => new RequestError({
logLevel: error?.logLevel ?? LogLevel.ERROR,
statusCode: error?.statusCode ?? 404,
type: error?.type ?? 'action_not_found_error',
message: error?.message ?? 'The requested action was not found',
context: error?.context,
stack: error?.stack
});

//* ----->[MISC ERRORS]<-----

0 comments on commit ce66e55

Please sign in to comment.