"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.OpenApiError = void 0;
class OpenApiError extends Error {
    _status;
    _error;
    constructor(value, message) {
        super(message);
        this._status = (value instanceof Error) ? null : value.status;
        this._error = (value instanceof Error) ? value : null;
    }
    get status() {
        return this._status;
    }
    get error() {
        return this._error;
    }
}
exports.OpenApiError = OpenApiError;
//# sourceMappingURL=OpenApiError.js.map