Merge remote-tracking branch 'origin' into activity-logs

This commit is contained in:
Tuan Dang
2023-01-01 10:55:39 +07:00

View File

@@ -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]<-----