"use strict";
/*---------------------------------------------------------------------------------------------
* Copyright (c) Bentley Systems, Incorporated. All rights reserved.
* See LICENSE.md in the project root for license terms and full copyright notice.
*--------------------------------------------------------------------------------------------*/
/** @packageDocumentation
 * @module NativeApp
 */
Object.defineProperty(exports, "__esModule", { value: true });
exports.CatalogError = void 0;
const core_bentley_1 = require("@itwin/core-bentley");
/**
 * Errors produced by the [[CatalogIModel]] API.
 * @beta
 */
var CatalogError;
(function (CatalogError) {
    CatalogError.scope = "itwin-Catalog";
    /** Determine whether an error object is a CatalogError */
    function isError(error, key) {
        return core_bentley_1.ITwinError.isError(error, CatalogError.scope, key);
    }
    CatalogError.isError = isError;
    /** Instantiate and throw a CatalogError */
    function throwError(key, e) {
        core_bentley_1.ITwinError.throwError({ ...e, iTwinErrorId: { scope: CatalogError.scope, key } });
    }
    CatalogError.throwError = throwError;
})(CatalogError || (exports.CatalogError = CatalogError = {}));
//# sourceMappingURL=CatalogIModel.js.map