/*
THIS INFRAGISTICS ULTIMATE SOFTWARE LICENSE  AGREEMENT ("AGREEMENT") LOCATED HERE:
https://www.infragistics.com/legal/license/igultimate-la
https://www.infragistics.com/legal/license/igultimate-eula
GOVERNS THE LICENSING, INSTALLATION AND USE OF INFRAGISTICS SOFTWARE. BY DOWNLOADING AND/OR INSTALLING AND USING INFRAGISTICS SOFTWARE:  you are indicating that you have read and understand this Agreement, and agree to be legally bound by it on behalf of the yourself and your company.
*/
import * as tslib_1 from "tslib";
import { ArgumentException } from "igniteui-angular-core";
import { BaseError, typeCast, markType } from "igniteui-angular-core";
/**
 * Introduce InvalidEnumArgumentException class to Silverlight
 */
var InvalidEnumArgumentException = /** @class */ (function (_super) {
    tslib_1.__extends(InvalidEnumArgumentException, _super);
    function InvalidEnumArgumentException() {
        var _rest = [];
        for (var _i = 0; _i < arguments.length; _i++) {
            _rest[_i] = arguments[_i];
        }
        var _this = this;
        var a;
        if (arguments.length === 0) {
            a = 0;
        }
        else if (arguments.length === 1) {
            a = 0;
        }
        else if (arguments.length === 2) {
            if (typeof arguments[1] === 'string') {
                a = 1;
            }
            else if (typeCast(BaseError.$, arguments[1]) !== null) {
                a = 0;
            }
            else if (arguments[1] == null) {
                a = 0;
            }
        }
        else if (arguments.length === 3) {
            a = 2;
        }
        switch (a) {
            case 0:
                {
                    var message = _rest[0];
                    var innerException = _rest[1];
                    _this = _super.call(this, 3, message, innerException) || this;
                    message = (message !== void 0 ? message : null);
                    innerException = (innerException !== void 0 ? innerException : null);
                }
                break;
            case 1:
                {
                    var message = _rest[0];
                    var paramName = _rest[1];
                    _this = _super.call(this, 2, message, paramName) || this;
                }
                break;
            case 2:
                {
                    var argumentName = _rest[0];
                    var invalidValue = _rest[1];
                    var enumClass = _rest[2];
                    _this = _super.call(this, 2, "Invalid Enum Argument: " + argumentName + " value: " + invalidValue, enumClass.toString()) || this;
                }
                break;
            default: throw new Error('Invalid arguments');
        }
        return _this;
    }
    InvalidEnumArgumentException.$t = markType(InvalidEnumArgumentException, 'InvalidEnumArgumentException', ArgumentException.$);
    return InvalidEnumArgumentException;
}(ArgumentException));
export { InvalidEnumArgumentException };
//# sourceMappingURL=InvalidEnumArgumentException.js.map