UNPKG

@smooai/utils

Version:

A collection of shared utilities and tools used across SmooAI projects. This package provides common functionality to standardize and simplify development across all SmooAI repositories.

17 lines (16 loc) 453 B
// src/api/ApiError.ts import { getReasonPhrase } from "http-status-codes"; var ApiError = class _ApiError extends Error { constructor(status, message, statusText) { super(message); this.status = status; this.statusText = statusText; } static throw(status, message, statusText) { throw new _ApiError(status, message, statusText || getReasonPhrase(status)); } }; export { ApiError }; //# sourceMappingURL=chunk-FLBIVOHD.mjs.map