UNPKG

@amirmarmul/waba-common

Version:

![GitHub release](https://img.shields.io/github/v/release/amirmarmul/waba-common?style=flat-square)

17 lines (16 loc) 398 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.AppError = void 0; class AppError extends Error { status; message; constructor(message, status = 500) { super(message); this.message = message; this.status = status; } serializeErrors() { return [{ message: this.message }]; } } exports.AppError = AppError;