Last steps
The conclusion of this exception filter.
const { httpError, description } = this.createErrorData(code, detail);
if (!httpError) {
return super.catch(exception, host);
}const { status, error } = httpError;
const { fieldName, fieldValue } = this.extractMessageData(detail);const meta = { description, fieldName, fieldValue, table };response.status(status).json({
statusCode: status,
message: detail,
error,
meta,
});Last updated