UNPKG

@foundry-ai/api-errors

Version:

Common errors that can be thrown and caught reliably across services

12 lines (11 loc) 426 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const baseError_1 = require("./baseError"); class NotFoundError extends baseError_1.BaseError { constructor(message = 'Not Found', status = 404) { super(message, status, 'not_found_error'); Error.captureStackTrace(this, this.constructor); this.name = this.constructor.name; } } exports.NotFoundError = NotFoundError;