@foundry-ai/api-errors
Version:
Common errors that can be thrown and caught reliably across services
12 lines (11 loc) • 437 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
const baseError_1 = require("./baseError");
class InternalError extends baseError_1.BaseError {
constructor(message = 'Internal Server Error', status = 500) {
super(message, status, 'internal_error');
Error.captureStackTrace(this, this.constructor);
this.name = this.constructor.name;
}
}
exports.InternalError = InternalError;