UNPKG

@foundry-ai/api-errors

Version:

Common errors that can be thrown and caught reliably across services

11 lines (10 loc) 269 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); class BaseError extends Error { constructor(message, status, type) { super(message); this.type = type; this.status = status; } } exports.BaseError = BaseError;