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 __());
    };
})();
import { CodeError } from '@iotize/common/error';
var IoTizeStudioError = /** @class */ (function (_super) {
    __extends(IoTizeStudioError, _super);
    function IoTizeStudioError() {
        return _super !== null && _super.apply(this, arguments) || this;
    }
    IoTizeStudioError.invalidKeyValue = function (key, msg) {
        return new IoTizeStudioError("Invalid IoTize studio value for configuration key \"" + key + "\". " + msg, IoTizeStudioError.Code.InvalidConfigKeyValue);
    };
    return IoTizeStudioError;
}(CodeError));
export { IoTizeStudioError };
(function (IoTizeStudioError) {
    var Code;
    (function (Code) {
        Code["InvalidConfigKeyValue"] = "IoTizeStudioErrorInvalidConfigKeyValue";
    })(Code = IoTizeStudioError.Code || (IoTizeStudioError.Code = {}));
})(IoTizeStudioError || (IoTizeStudioError = {}));
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZXJyb3JzLmpzIiwic291cmNlUm9vdCI6Im5nOi8vQGlvdGl6ZS90YXAvY29uZmlnL2lvdGl6ZS1zdHVkaW8vIiwic291cmNlcyI6WyJsaWIvZXJyb3JzLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7Ozs7Ozs7Ozs7QUFBQSxPQUFPLEVBQUUsU0FBUyxFQUFFLE1BQU0sc0JBQXNCLENBQUM7QUFFakQ7SUFBdUMscUNBQWlDO0lBQXhFOztJQVFBLENBQUM7SUFOVSxpQ0FBZSxHQUF0QixVQUF1QixHQUFXLEVBQUUsR0FBVztRQUMzQyxPQUFPLElBQUksaUJBQWlCLENBQ3hCLHlEQUFzRCxHQUFHLFlBQU0sR0FBSyxFQUNwRSxpQkFBaUIsQ0FBQyxJQUFJLENBQUMscUJBQXFCLENBQy9DLENBQUM7SUFDTixDQUFDO0lBQ0wsd0JBQUM7QUFBRCxDQUFDLEFBUkQsQ0FBdUMsU0FBUyxHQVEvQzs7QUFHRCxXQUFpQixpQkFBaUI7SUFFOUIsSUFBWSxJQUVYO0lBRkQsV0FBWSxJQUFJO1FBQ1osd0VBQWdFLENBQUE7SUFDcEUsQ0FBQyxFQUZXLElBQUksR0FBSixzQkFBSSxLQUFKLHNCQUFJLFFBRWY7QUFDTCxDQUFDLEVBTGdCLGlCQUFpQixLQUFqQixpQkFBaUIsUUFLakMifQ==