var __extends = (this && this.__extends) || (function () {
    var extendStatics = function (d, b) {
        extendStatics = Object.setPrototypeOf ||
            ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
            function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
        return extendStatics(d, b);
    };
    return function (d, b) {
        extendStatics(d, b);
        function __() { this.constructor = d; }
        d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
    };
})();
var ReactError = /** @class */ (function (_super) {
    __extends(ReactError, _super);
    function ReactError(message, errorType) {
        var _this = _super.call(this, message) || this;
        _this.errorType = errorType;
        Object.setPrototypeOf(_this, ReactError.prototype);
        return _this;
    }
    return ReactError;
}(Error));
export { ReactError };
var ValidationFailed = /** @class */ (function (_super) {
    __extends(ValidationFailed, _super);
    function ValidationFailed(message, errorType) {
        var _this = _super.call(this, message, errorType) || this;
        Object.setPrototypeOf(_this, ValidationFailed.prototype);
        return _this;
    }
    return ValidationFailed;
}(ReactError));
export { ValidationFailed };
var InvalidNumber = /** @class */ (function (_super) {
    __extends(InvalidNumber, _super);
    function InvalidNumber(additionalMessage) {
        if (additionalMessage === void 0) { additionalMessage = ''; }
        var _this = _super.call(this, "Invalid number. " + additionalMessage, 'InvalidNumber') || this;
        Object.setPrototypeOf(_this, InvalidNumber.prototype);
        return _this;
    }
    return InvalidNumber;
}(ValidationFailed));
export { InvalidNumber };
var InvalidTransferDetails = /** @class */ (function (_super) {
    __extends(InvalidTransferDetails, _super);
    function InvalidTransferDetails() {
        var _this = _super.call(this, 'Invalid transfer details.', 'InvalidTransferDetails') || this;
        Object.setPrototypeOf(_this, InvalidTransferDetails.prototype);
        return _this;
    }
    return InvalidTransferDetails;
}(ValidationFailed));
export { InvalidTransferDetails };
var MissingParameter = /** @class */ (function (_super) {
    __extends(MissingParameter, _super);
    function MissingParameter(parameterName) {
        var _this = _super.call(this, "Missing parameter: " + parameterName, 'MissingParameter') || this;
        Object.setPrototypeOf(_this, MissingParameter.prototype);
        return _this;
    }
    return MissingParameter;
}(ValidationFailed));
export { MissingParameter };
var UnexpectedWalletState = /** @class */ (function (_super) {
    __extends(UnexpectedWalletState, _super);
    function UnexpectedWalletState(walletState) {
        var _this = _super.call(this, "Unexpected wallet state: " + walletState, 'UnexpectedWalletState') || this;
        Object.setPrototypeOf(_this, UnexpectedWalletState.prototype);
        return _this;
    }
    return UnexpectedWalletState;
}(ValidationFailed));
export { UnexpectedWalletState };
var IPGeolocationError = /** @class */ (function (_super) {
    __extends(IPGeolocationError, _super);
    function IPGeolocationError(message, wrappedError) {
        var _this = this;
        var reason = wrappedError instanceof Error ? wrappedError.message : JSON.stringify(wrappedError);
        _this = _super.call(this, message + ". Reason: " + reason, 'IpGeolocationError') || this;
        Object.setPrototypeOf(_this, IPGeolocationError.prototype);
        return _this;
    }
    return IPGeolocationError;
}(ReactError));
export { IPGeolocationError };
//# sourceMappingURL=errors.js.map