UNPKG

@sentzunhat/zacatl

Version:

A modular, high-performance TypeScript microservice framework for Node.js, featuring layered architecture, dependency injection, and robust validation for building scalable APIs and distributed systems.

16 lines (13 loc) 364 B
import { CustomError, CustomErrorsArgs } from "./custom"; export interface InternalServerErrorArgs extends CustomErrorsArgs {} export class InternalServerError extends CustomError { constructor({ message, reason, metadata, error }: InternalServerErrorArgs) { super({ message, code: 500, reason, metadata, error, }); } }