@itwin/core-bentley 5.0.0-dev.93 → 5.0.0-dev.94

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,51 @@
1
1
  /** @packageDocumentation
2
2
  * @module Errors
3
3
  */
4
+ import { Optional } from "./UtilityTypes";
5
+ /** Uniquely identifies a specific kind of [[ITwinError]].
6
+ * @beta
7
+ */
8
+ export interface ITwinErrorId {
9
+ /** A "namespace" serving as a qualifier for the [[key]]. It should be specific enough to ensure uniqueness across all applications.
10
+ * For example, all errors originating from a given package should use that package's full name as their scope.
11
+ */
12
+ readonly scope: string;
13
+ /** Uniquely identifies a specific kind of [[ITwinError]] within the [[scope]]. */
14
+ readonly key: string;
15
+ }
16
+ /** The interface that all exceptions thrown by iTwin.js libraries and applications should implement.
17
+ * Specific kinds of `ITwinError`s are identified by an [[ITwinErrorId]] that allows programmers to identify errors when they are caught without relying
18
+ * on specific class hierarchies, which is especially important when errors are marshalled across process boundaries.
19
+ * You can extend `ITwinError` to add properties that provide programmers with additional context for a particular kind of error.
20
+ * When catching errors, programmers can use [[isError]] to determine if the error is of a specific sub-type, and if so access the
21
+ * additional properties.
22
+ * Those additional properties will also be logged as metadata by [[Logger.logException]].
23
+ * @beta
24
+ */
25
+ export interface ITwinError extends Error {
26
+ /** Uniquely identifies the kind of error. */
27
+ readonly iTwinErrorId: ITwinErrorId;
28
+ }
29
+ /** @beta */
30
+ export declare namespace ITwinError {
31
+ /** Instantiate a new `ITwinError` or subtype thereof.
32
+ * @see [[ITwinError.throwError]] to conveniently instantiate and throw the error.
33
+ */
34
+ function create<T extends ITwinError>(args: Optional<T, "name">): T;
35
+ /** Instantiate and immediately throw an `ITwinError`.
36
+ * @see [[ITwinError.create]] to instantiate an error without throwing it.
37
+ */
38
+ function throwError<T extends ITwinError>(args: Optional<T, "name">): never;
39
+ /**
40
+ * Determine whether an error object was thrown by iTwin.js and has a specific scope and key.
41
+ *
42
+ * If the test succeeds, the type of `error` is coerced to `T`
43
+ * @param error The error to ve verified.
44
+ * @param scope value for `error.iTwinErrorId.scope`
45
+ * @param key value for `error.iTwinErrorId.key`
46
+ */
47
+ function isError<T extends ITwinError>(error: unknown, scope: string, key?: string): error is T;
48
+ }
4
49
  /** Standard status code.
5
50
  * This status code should be rarely used.
6
51
  * Prefer to throw an exception to indicate an error, rather than returning a special status code.
@@ -293,11 +338,29 @@ interface ErrorProps {
293
338
  stack?: string;
294
339
  metadata?: object;
295
340
  }
296
- /** Base exception class for iTwin.js exceptions.
341
+ /**
342
+ * An [[ITwinError]] that also supplies an `errorNumber`.
343
+ * @note this interface exists *only* for legacy errors derived from `BentleyError`. The concept of "error number" is
344
+ * problematic since it is impossible to enforce across the iTwin.js library, let alone across applications. New code should
345
+ * use `ITwinError` and identify errors with strings instead.
346
+ * @beta */
347
+ export interface LegacyITwinErrorWithNumber extends ITwinError {
348
+ /** a number to identify the error. */
349
+ readonly errorNumber: number;
350
+ /** Logging metadata
351
+ * @note exceptions should *not* include logging data. Logging should be done where exceptions are caught. This member exists
352
+ * only for backwards compatibility.
353
+ */
354
+ loggingMetadata?: object;
355
+ }
356
+ /**
357
+ * Base exception class for legacy iTwin.js errors.
358
+ * For backwards compatibility only. Do not create new subclasses of BentleyError. Instead use [[ITwinError]].
297
359
  * @public
298
360
  */
299
361
  export declare class BentleyError extends Error {
300
362
  errorNumber: number;
363
+ static readonly iTwinErrorScope = "bentley-error";
301
364
  private readonly _metaData;
302
365
  /**
303
366
  * @param errorNumber The a number that identifies of the problem.
@@ -305,6 +368,21 @@ export declare class BentleyError extends Error {
305
368
  * @param metaData metaData about the exception.
306
369
  */
307
370
  constructor(errorNumber: number, message?: string, metaData?: LoggingMetaData);
371
+ /** supply the value for iTwinErrorId */
372
+ get iTwinErrorId(): {
373
+ scope: string;
374
+ key: string;
375
+ };
376
+ /** value for logging metadata */
377
+ get loggingMetadata(): object | undefined;
378
+ /**
379
+ * Determine if an error object implements the `LegacyITwinErrorWithNumber` interface.
380
+ *
381
+ * If the test succeeds, the type of `error` is coerced to `T`
382
+ * @note this method does *not* test that the object is an `instanceOf BentleyError`.
383
+ * @beta
384
+ */
385
+ static isError<T extends LegacyITwinErrorWithNumber>(error: unknown, errorNumber?: number): error is T;
308
386
  /** Returns true if this BentleyError includes (optional) metadata. */
309
387
  get hasMetaData(): boolean;
310
388
  /** get the meta data associated with this BentleyError, if any. */
@@ -313,6 +391,8 @@ export declare class BentleyError extends Error {
313
391
  static getMetaData(metaData: LoggingMetaData): object | undefined;
314
392
  /** This function returns the name of each error status. Override this method to handle more error status codes. */
315
393
  protected _initName(): string;
394
+ /** This function returns the name of each error status. */
395
+ static getErrorKey(errorNumber: number): string;
316
396
  /** Use run-time type checking to safely get a useful string summary of an unknown error value, or `""` if none exists.
317
397
  * @note It's recommended to use this function in `catch` clauses, where a caught value cannot be assumed to be `instanceof Error`
318
398
  * @public
@@ -1 +1 @@
1
- {"version":3,"file":"BentleyError.d.ts","sourceRoot":"","sources":["../../src/BentleyError.ts"],"names":[],"mappings":"AAIA;;GAEG;AAKH;;;;;GAKG;AACH,oBAAY,aAAa;IACvB,OAAO,IAAS;IAChB,KAAK,QAAS;CACf;AAED;;;GAGG;AACH,oBAAY,YAAY;IACtB,iBAAiB,QAAU;IAC3B,OAAO,IAAI;IACX,aAAa,QAAwB;IACrC,WAAW,QAAwB;IACnC,MAAM,QAAwB;IAC9B,UAAU,QAAwB;IAClC,QAAQ,QAAwB;IAChC,UAAU,QAAwB;IAClC,SAAS,QAAwB;IACjC,UAAU,QAAwB;IAClC,eAAe,QAAwB;IACvC,kBAAkB,QAAyB;IAC3C,aAAa,QAAyB;IACtC,aAAa,QAAyB;IACtC,oBAAoB,QAAyB;IAC7C,iBAAiB,QAAyB;IAC1C,YAAY,QAAyB;IACrC,aAAa,QAAyB;IACtC,oBAAoB,QAAyB;IAC7C,QAAQ,QAAyB;IACjC,oBAAoB,QAAyB;IAC7C,eAAe,QAAyB;IACxC,W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AM,GAAG,SAAS;IAO/D;;;;OAIG;WACW,gBAAgB,CAAC,KAAK,EAAE,OAAO,GAAG,MAAM,GAAG,SAAS;IAUlE;;;;OAIG;WACW,aAAa,CAAC,KAAK,EAAE,OAAO,GAAG,UAAU;CAexD"}
@@ -7,9 +7,44 @@
7
7
  * @module Errors
8
8
  */
9
9
  Object.defineProperty(exports, "__esModule", { value: true });
10
- exports.BentleyError = exports.RealityDataStatus = exports.GeoServiceStatus = exports.IModelHubStatus = exports.HttpStatus = exports.ChangeSetStatus = exports.RpcInterfaceStatus = exports.BriefcaseStatus = exports.IModelStatus = exports.BentleyStatus = void 0;
10
+ exports.BentleyError = exports.RealityDataStatus = exports.GeoServiceStatus = exports.IModelHubStatus = exports.HttpStatus = exports.ChangeSetStatus = exports.RpcInterfaceStatus = exports.BriefcaseStatus = exports.IModelStatus = exports.BentleyStatus = exports.ITwinError = void 0;
11
11
  const BeSQLite_1 = require("./BeSQLite");
12
12
  const RepositoryStatus_1 = require("./internal/RepositoryStatus");
13
+ const JsonUtils_1 = require("./JsonUtils");
14
+ /** @beta */
15
+ var ITwinError;
16
+ (function (ITwinError) {
17
+ /** Instantiate a new `ITwinError` or subtype thereof.
18
+ * @see [[ITwinError.throwError]] to conveniently instantiate and throw the error.
19
+ */
20
+ function create(args) {
21
+ const err = new Error(args.message);
22
+ Object.assign(err, args);
23
+ err.name = args.iTwinErrorId.key; // helpful because this is used by `toString` for Error class
24
+ return err;
25
+ }
26
+ ITwinError.create = create;
27
+ /** Instantiate and immediately throw an `ITwinError`.
28
+ * @see [[ITwinError.create]] to instantiate an error without throwing it.
29
+ */
30
+ function throwError(args) {
31
+ throw create(args);
32
+ }
33
+ ITwinError.throwError = throwError;
34
+ /**
35
+ * Determine whether an error object was thrown by iTwin.js and has a specific scope and key.
36
+ *
37
+ * If the test succeeds, the type of `error` is coerced to `T`
38
+ * @param error The error to ve verified.
39
+ * @param scope value for `error.iTwinErrorId.scope`
40
+ * @param key value for `error.iTwinErrorId.key`
41
+ */
42
+ function isError(error, scope, key) {
43
+ return JsonUtils_1.JsonUtils.isObject(error) && "iTwinErrorId" in error && JsonUtils_1.JsonUtils.isObject(error.iTwinErrorId)
44
+ && error.iTwinErrorId.scope === scope && (undefined === key || error.iTwinErrorId.key === key);
45
+ }
46
+ ITwinError.isError = isError;
47
+ })(ITwinError || (exports.ITwinError = ITwinError = {}));
13
48
  /** Standard status code.
14
49
  * This status code should be rarely used.
15
50
  * Prefer to throw an exception to indicate an error, rather than returning a special status code.
@@ -299,14 +334,14 @@ var RealityDataStatus;
299
334
  RealityDataStatus[RealityDataStatus["REALITYDATA_ERROR_BASE"] = 151552] = "REALITYDATA_ERROR_BASE";
300
335
  RealityDataStatus[RealityDataStatus["InvalidData"] = 151553] = "InvalidData";
301
336
  })(RealityDataStatus || (exports.RealityDataStatus = RealityDataStatus = {}));
302
- function isObject(obj) {
303
- return typeof obj === "object" && obj !== null;
304
- }
305
- /** Base exception class for iTwin.js exceptions.
337
+ /**
338
+ * Base exception class for legacy iTwin.js errors.
339
+ * For backwards compatibility only. Do not create new subclasses of BentleyError. Instead use [[ITwinError]].
306
340
  * @public
307
341
  */
308
342
  class BentleyError extends Error {
309
343
  errorNumber;
344
+ static iTwinErrorScope = "bentley-error";
310
345
  _metaData;
311
346
  /**
312
347
  * @param errorNumber The a number that identifies of the problem.
@@ -320,6 +355,23 @@ class BentleyError extends Error {
320
355
  this._metaData = metaData;
321
356
  this.name = this._initName();
322
357
  }
358
+ /** supply the value for iTwinErrorId */
359
+ get iTwinErrorId() {
360
+ return { scope: BentleyError.iTwinErrorScope, key: this.name };
361
+ }
362
+ /** value for logging metadata */
363
+ get loggingMetadata() { return this.getMetaData(); }
364
+ /**
365
+ * Determine if an error object implements the `LegacyITwinErrorWithNumber` interface.
366
+ *
367
+ * If the test succeeds, the type of `error` is coerced to `T`
368
+ * @note this method does *not* test that the object is an `instanceOf BentleyError`.
369
+ * @beta
370
+ */
371
+ static isError(error, errorNumber) {
372
+ return ITwinError.isError(error, BentleyError.iTwinErrorScope) &&
373
+ typeof error.errorNumber === "number" && (errorNumber === undefined || error.errorNumber === errorNumber);
374
+ }
323
375
  /** Returns true if this BentleyError includes (optional) metadata. */
324
376
  get hasMetaData() { return undefined !== this._metaData; }
325
377
  /** get the meta data associated with this BentleyError, if any. */
@@ -332,7 +384,11 @@ class BentleyError extends Error {
332
384
  }
333
385
  /** This function returns the name of each error status. Override this method to handle more error status codes. */
334
386
  _initName() {
335
- switch (this.errorNumber) {
387
+ return BentleyError.getErrorKey(this.errorNumber);
388
+ }
389
+ /** This function returns the name of each error status. */
390
+ static getErrorKey(errorNumber) {
391
+ switch (errorNumber) {
336
392
  case IModelStatus.AlreadyLoaded: return "Already Loaded";
337
393
  case IModelStatus.AlreadyOpen: return "Already Open";
338
394
  case IModelStatus.BadArg: return "Bad Arg";
@@ -607,7 +663,7 @@ class BentleyError extends Error {
607
663
  case BentleyStatus.SUCCESS:
608
664
  return "Success";
609
665
  default:
610
- return `Error (${this.errorNumber})`;
666
+ return `Error (${errorNumber})`;
611
667
  }
612
668
  }
613
669
  /** Use run-time type checking to safely get a useful string summary of an unknown error value, or `""` if none exists.
@@ -619,7 +675,7 @@ class BentleyError extends Error {
619
675
  return error;
620
676
  if (error instanceof Error)
621
677
  return error.toString();
622
- if (isObject(error)) {
678
+ if (JsonUtils_1.JsonUtils.isObject(error)) {
623
679
  if (typeof error.message === "string")
624
680
  return error.message;
625
681
  if (typeof error.msg === "string")
@@ -635,7 +691,7 @@ class BentleyError extends Error {
635
691
  * @public
636
692
  */
637
693
  static getErrorStack(error) {
638
- if (isObject(error) && typeof error.stack === "string")
694
+ if (JsonUtils_1.JsonUtils.isObject(error) && typeof error.stack === "string")
639
695
  return error.stack;
640
696
  return undefined;
641
697
  }
@@ -645,7 +701,7 @@ class BentleyError extends Error {
645
701
  * @public
646
702
  */
647
703
  static getErrorMetadata(error) {
648
- if (isObject(error) && typeof error.getMetaData === "function") {
704
+ if (JsonUtils_1.JsonUtils.isObject(error) && typeof error.getMetaData === "function") {
649
705
  const metadata = error.getMetaData();
650
706
  if (typeof metadata === "object" && metadata !== null)
651
707
  return metadata;
@@ -1 +1 @@
1
- {"version":3,"file":"BentleyError.js","sourceRoot":"","sources":["../../src/BentleyError.ts"],"names":[],"mappings":";AAAA;;;+FAG+F;AAC/F;;GAEG;;;AAEH,yCAAsC;AACtC,kEAA+D;AAE/D;;;;;GAKG;AACH,IAAY,aAGX;AAHD,WAAY,aAAa;IACvB,uDAAgB,CAAA;IAChB,uDAAc,CAAA;AAChB,CAAC,EAHW,aAAa,6BAAb,aAAa,QAGxB;AAED;;;GAGG;AACH,IAAY,YA0EX;AA1ED,WAAY,YAAY;IACtB,6EAA2B,CAAA;IAC3B,qDAAW,CAAA;IACX,qEAAqC,CAAA;IACrC,iEAAmC,CAAA;IACnC,uDAA8B,CAAA;IAC9B,+DAAkC,CAAA;IAClC,2DAAgC,CAAA;IAChC,+DAAkC,CAAA;IAClC,6DAAiC,CAAA;IACjC,+DAAkC,CAAA;IAClC,yEAAuC,CAAA;IACvC,+EAA2C,CAAA;IAC3C,qEAAsC,CAAA;IACtC,qEAAsC,CAAA;IACtC,mFAA6C,CAAA;IAC7C,6EAA0C,CAAA;IAC1C,mEAAqC,CAAA;IACrC,qEAAsC,CAAA;IACtC,mFAA6C,CAAA;IAC7C,2DAAiC,CAAA;IACjC,mFAA6C,CAAA;IAC7C,yEAAwC,CAAA;IACxC,iEAAoC,CAAA;IACpC,yEAAwC,CAAA;IACxC,6DAAkC,CAAA;IAClC,iEAAoC,CAAA;IACpC,qEAAsC,CAAA;IACtC,qFAA8C,CAAA;IAC9C,iFAA4C,CAAA;IAC5C,iEAAoC,CAAA;IACpC,mEAAqC,CAAA;IACrC,iEAAoC,CAAA;IACpC,qEAAsC,CAAA;IACtC,uEAAuC,CAAA;IACvC,6DAAkC,CAAA;IAClC,+DAAmC,CAAA;IACnC,iFAA4C,CAAA;IAC5C,+DAAmC,CAAA;IACn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------------------------------------------------------------\n* Copyright (c) Bentley Systems, Incorporated. All rights reserved.\n* See LICENSE.md in the project root for license terms and full copyright notice.\n*--------------------------------------------------------------------------------------------*/\n/** @packageDocumentation\n * @module Errors\n */\n\nimport { DbResult } from \"./BeSQLite\";\nimport { RepositoryStatus } from \"./internal/RepositoryStatus\";\n\n/** Standard status code.\n * This status code should be rarely used.\n * Prefer to throw an exception to indicate an error, rather than returning a special status code.\n * If a status code is to be returned, prefer to return a more specific error status type such as IModelStatus or DbResult.\n * @public\n */\nexport enum BentleyStatus {\n SUCCESS = 0x0000,\n ERROR = 0x8000,\n}\n\n/** Status codes that are used in conjunction with [[BentleyError]].\n * Error status codes are divided into separate ranges for different kinds of errors. All known ranges at least should be defined here, to avoid collisions.\n * @public\n */\nexport enum IModelStatus {\n IMODEL_ERROR_BASE = 0x10000,\n Success = 0,\n AlreadyLoaded = IMODEL_ERROR_BASE + 1,\n AlreadyOpen = IMODEL_ERROR_BASE + 2,\n BadArg = IMODEL_ERROR_BASE + 3,\n BadElement = IMODEL_ERROR_BASE + 4,\n BadModel = IMODEL_ERROR_BASE + 5,\n BadRequest = IMODEL_ERROR_BASE + 6,\n BadSchema = IMODEL_ERROR_BASE + 7,\n CannotUndo = IMODEL_ERROR_BASE + 8,\n CodeNotReserved = IMODEL_ERROR_BASE + 9,\n DeletionProhibited = IMODEL_ERROR_BASE + 10,\n DuplicateCode = IMODEL_ERROR_BASE + 11,\n DuplicateName = IMODEL_ERROR_BASE + 12,\n ElementBlockedChange = IMODEL_ERROR_BASE + 13,\n FileAlreadyExists = IMODEL_ERROR_BASE + 14,\n FileNotFound = IMODEL_ERROR_BASE + 15,\n FileNotLoaded = IMODEL_ERROR_BASE + 16,\n ForeignKeyConstraint = IMODEL_ERROR_BASE + 17,\n IdExists = IMODEL_ERROR_BASE + 18,\n InDynamicTransaction = IMODEL_ERROR_BASE + 19,\n InvalidCategory = IMODEL_ERROR_BASE + 20,\n InvalidCode = IMODEL_ERROR_BASE + 21,\n InvalidCodeSpec = IMODEL_ERROR_BASE + 22,\n InvalidId = IMODEL_ERROR_BASE + 23,\n InvalidName = IMODEL_ERROR_BASE + 24,\n InvalidParent = IMODEL_ERROR_BASE + 25,\n InvalidProfileVersion = IMODEL_ERROR_BASE + 26,\n IsCreatingChangeSet = IMODEL_ERROR_BASE + 27,\n LockNotHeld = IMODEL_ERROR_BASE + 28,\n Mismatch2d3d = IMODEL_ERROR_BASE + 29,\n MismatchGcs = IMODEL_ERROR_BASE + 30,\n MissingDomain = IMODEL_ERROR_BASE + 31,\n MissingHandler = IMODEL_ERROR_BASE + 32,\n MissingId = IMODEL_ERROR_BASE + 33,\n NoGeometry = IMODEL_ERROR_BASE + 34,\n NoMultiTxnOperation = IMODEL_ERROR_BASE + 35,\n NotEnabled = IMODEL_ERROR_BASE + 37,\n NotFound = IMODEL_ERROR_BASE + 38,\n NotOpen = IMODEL_ERROR_BASE + 39,\n NotOpenForWrite = IMODEL_ERROR_BASE + 40,\n NotSameUnitBase = IMODEL_ERROR_BASE + 41,\n NothingToRedo = IMODEL_ERROR_BASE + 42,\n NothingToUndo = IMODEL_ERROR_BASE + 43,\n ParentBlockedChange = IMODEL_ERROR_BASE + 44,\n ReadError = IMODEL_ERROR_BASE + 45,\n ReadOnly = IMODEL_ERROR_BASE + 46,\n ReadOnlyDomain = IMODEL_ERROR_BASE + 47,\n RepositoryManagerError = IMODEL_ERROR_BASE + 48,\n SQLiteError = IMODEL_ERROR_BASE + 49,\n TransactionActive = IMODEL_ERROR_BASE + 50,\n UnitsMissing = IMODEL_ERROR_BASE + 51,\n UnknownFormat = IMODEL_ERROR_BASE + 52,\n UpgradeFailed = IMODEL_ERROR_BASE + 53,\n ValidationFailed = IMODEL_ERROR_BASE + 54,\n VersionTooNew = IMODEL_ERROR_BASE + 55,\n VersionTooOld = IMODEL_ERROR_BASE + 56,\n ViewNotFound = IMODEL_ERROR_BASE + 57,\n WriteError = IMODEL_ERROR_BASE + 58,\n WrongClass = IMODEL_ERROR_BASE + 59,\n WrongIModel = IMODEL_ERROR_BASE + 60,\n WrongDomain = IMODEL_ERROR_BASE + 61,\n WrongElement = IMODEL_ERROR_BASE + 62,\n WrongHandler = IMODEL_ERROR_BASE + 63,\n WrongModel = IMODEL_ERROR_BASE + 64,\n ConstraintNotUnique = IMODEL_ERROR_BASE + 65,\n NoGeoLocation = IMODEL_ERROR_BASE + 66,\n ServerTimeout = IMODEL_ERROR_BASE + 67,\n NoContent = IMODEL_ERROR_BASE + 68,\n NotRegistered = IMODEL_ERROR_BASE + 69,\n FunctionNotFound = IMODEL_ERROR_BASE + 70,\n NoActiveCommand = IMODEL_ERROR_BASE + 71,\n Aborted = IMODEL_ERROR_BASE + 72,\n}\n\n/** Error statuses produced by various briefcase operations, typically encountered as the `errorNumber` of an [IModelError]($common).\n * @public\n */\nexport enum BriefcaseStatus {\n BRIEFCASE_STATUS_BASE = 0x20000,\n CannotAcquire = BRIEFCASE_STATUS_BASE,\n CannotDownload = BRIEFCASE_STATUS_BASE + 1,\n CannotUpload = BRIEFCASE_STATUS_BASE + 2,\n CannotCopy = BRIEFCASE_STATUS_BASE + 3,\n CannotDelete = BRIEFCASE_STATUS_BASE + 4,\n VersionNotFound = BRIEFCASE_STATUS_BASE + 5,\n CannotApplyChanges = BRIEFCASE_STATUS_BASE + 6,\n DownloadCancelled = BRIEFCASE_STATUS_BASE + 7,\n ContainsDeletedChangeSets = BRIEFCASE_STATUS_BASE + 8,\n}\n\n/** RpcInterface status codes\n * @beta\n */\nexport enum RpcInterfaceStatus {\n Success = 0,\n RPC_INTERFACE_ERROR_BASE = 0x21000,\n /** The RpcInterface implemented by the server is incompatible with the interface requested by the client. */\n IncompatibleVersion = RPC_INTERFACE_ERROR_BASE,\n}\n\n/** Error statuses produced by various Changeset operations, typically encountered as the `errorNumber` of an [IModelError]($common).\n * @public\n */\nexport enum ChangeSetStatus { // Note: Values must be kept in sync with ChangeSetStatus in DgnPlatform\n Success = 0,\n CHANGESET_ERROR_BASE = 0x16000,\n /** Error applying a change set when reversing or reinstating it */\n ApplyError = CHANGESET_ERROR_BASE + 1,\n /** Change tracking has not been enabled. The ChangeSet API mandates this. */\n ChangeTrackingNotEnabled = CHANGESET_ERROR_BASE + 2,\n /** Contents of the change stream are corrupted and does not match the ChangeSet */\n CorruptedChangeStream = CHANGESET_ERROR_BASE + 3,\n /** File containing the changes to the change set is not found */\n FileNotFound = CHANGESET_ERROR_BASE + 4,\n /** Error writing the contents of the change set to the backing change stream file */\n FileWriteError = CHANGESET_ERROR_BASE + 5,\n /** Cannot perform the operation since the Db has local changes */\n HasLocalChanges = CHANGESET_ERROR_BASE + 6,\n /** Cannot perform the operation since current transaction has uncommitted changes */\n HasUncommittedChanges = CHANGESET_ERROR_BASE + 7,\n /** Invalid ChangeSet Id */\n InvalidId = CHANGESET_ERROR_BASE + 8,\n /** Invalid version of the change set */\n InvalidVersion = CHANGESET_ERROR_BASE + 9,\n /** Cannot perform the operation since system is in the middle of a dynamic transaction */\n InDynamicTransaction = CHANGESET_ERROR_BASE + 10,\n /** Cannot perform operation since system is in the middle of a creating a change set */\n IsCreatingChangeSet = CHANGESET_ERROR_BASE + 11,\n /** Cannot perform operation since the system is not creating a change set */\n IsNotCreatingChangeSet = CHANGESET_ERROR_BASE + 12,\n /** Error propagating the changes after the merge */\n MergePropagationError = CHANGESET_ERROR_BASE + 13,\n /** No change sets to merge */\n NothingToMerge = CHANGESET_ERROR_BASE + 14,\n /** No transactions are available to create a change set */\n NoTransactions = CHANGESET_ERROR_BASE + 15,\n /** Parent change set of the Db does not match the parent id of the change set */\n ParentMismatch = CHANGESET_ERROR_BASE + 16,\n /** Error performing a SQLite operation on the Db */\n SQLiteError = CHANGESET_ERROR_BASE + 17,\n /** ChangeSet originated in a different Db */\n WrongDgnDb = CHANGESET_ERROR_BASE + 18,\n /** Could not open the DgnDb to merge change set */\n CouldNotOpenDgnDb = CHANGESET_ERROR_BASE + 19,\n /** Cannot merge changes in in an open DgnDb. Close the DgnDb, and process the operation when it is opened. */\n MergeSchemaChangesOnOpen = CHANGESET_ERROR_BASE + 20,\n /** Cannot reverse or reinstate schema changes. */\n ReverseOrReinstateSchemaChanges = CHANGESET_ERROR_BASE + 21,\n /** Cannot process changes schema changes in an open DgnDb. Close the DgnDb, and process the operation when it is opened. */\n ProcessSchemaChangesOnOpen = CHANGESET_ERROR_BASE + 22,\n /** Cannot merge changes into a Readonly DgnDb. */\n CannotMergeIntoReadonly = CHANGESET_ERROR_BASE + 23,\n /** Cannot merge changes into a Master DgnDb. */\n CannotMergeIntoMaster = CHANGESET_ERROR_BASE + 24,\n /** Cannot merge changes into a DgnDb that has reversed change sets. */\n CannotMergeIntoReversed = CHANGESET_ERROR_BASE + 25,\n /** ChangeSet(s) download was cancelled. */\n DownloadCancelled = CHANGESET_ERROR_BASE + 26,\n}\n\n/** Status from returned HTTP status code\n * @beta\n */\nexport enum HttpStatus {\n /** 2xx Success */\n Success = 0,\n /** 1xx Informational responses */\n Info = 0x17001,\n /** 3xx Redirection */\n Redirection = 0x17002,\n /** 4xx Client errors */\n ClientError = 0x17003,\n /** 5xx Server errors */\n ServerError = 0x17004,\n}\n\n/** Statuses produced by APIs that interact with iModelHub, typically encountered as the `errorNumber` of an [IModelError]($common).\n * @public\n */\nexport enum IModelHubStatus {\n Success = 0,\n IMODELHUBERROR_BASE = 0x19000,\n IMODELHUBERROR_REQUESTERRORBASE = 0x19100,\n Unknown = IMODELHUBERROR_BASE + 1,\n MissingRequiredProperties = IMODELHUBERROR_BASE + 2,\n InvalidPropertiesValues = IMODELHUBERROR_BASE + 3,\n UserDoesNotHavePermission = IMODELHUBERROR_BASE + 4,\n UserDoesNotHaveAccess = IMODELHUBERROR_BASE + 5,\n InvalidBriefcase = IMODELHUBERROR_BASE + 6,\n BriefcaseDoesNotExist = IMODELHUBERROR_BASE + 7,\n BriefcaseDoesNotBelongToUser = IMODELHUBERROR_BASE + 8,\n AnotherUserPushing = IMODELHUBERROR_BASE + 9,\n ChangeSetAlreadyExists = IMODELHUBERROR_BASE + 10,\n ChangeSetDoesNotExist = IMODELHUBERROR_BASE + 11,\n FileIsNotUploaded = IMODELHUBERROR_BASE + 12,\n iModelIsNotInitialized = IMODELHUBERROR_BASE + 13,\n ChangeSetPointsToBadSeed = IMODELHUBERROR_BASE + 14,\n OperationFailed = IMODELHUBERROR_BASE + 15,\n PullIsRequired = IMODELHUBERROR_BASE + 16,\n MaximumNumberOfBriefcasesPerUser = IMODELHUBERROR_BASE + 17,\n MaximumNumberOfBriefcasesPerUserPerMinute = IMODELHUBERROR_BASE + 18,\n DatabaseTemporarilyLocked = IMODELHUBERROR_BASE + 19,\n iModelIsLocked = IMODELHUBERROR_BASE + 20,\n CodesExist = IMODELHUBERROR_BASE + 21,\n LocksExist = IMODELHUBERROR_BASE + 22,\n iModelAlreadyExists = IMODELHUBERROR_BASE + 23,\n iModelDoesNotExist = IMODELHUBERROR_BASE + 24,\n FileDoesNotExist = IMODELHUBERROR_BASE + 25,\n FileAlreadyExists = IMODELHUBERROR_BASE + 26,\n LockDoesNotExist = IMODELHUBERROR_BASE + 27,\n LockOwnedByAnotherBriefcase = IMODELHUBERROR_BASE + 28,\n CodeStateInvalid = IMODELHUBERROR_BASE + 29,\n CodeReservedByAnotherBriefcase = IMODELHUBERROR_BASE + 30,\n CodeDoesNotExist = IMODELHUBERROR_BASE + 31,\n EventTypeDoesNotExist = IMODELHUBERROR_BASE + 32,\n EventSubscriptionDoesNotExist = IMODELHUBERROR_BASE + 33,\n EventSubscriptionAlreadyExists = IMODELHUBERROR_BASE + 34,\n ITwinIdIsNotSpecified = IMODELHUBERROR_BASE + 35,\n FailedToGetITwinPermissions = IMODELHUBERROR_BASE + 36,\n FailedToGetITwinMembers = IMODELHUBERROR_BASE + 37,\n ChangeSetAlreadyHasVersion = IMODELHUBERROR_BASE + 38,\n VersionAlreadyExists = IMODELHUBERROR_BASE + 39,\n JobSchedulingFailed = IMODELHUBERROR_BASE + 40,\n ConflictsAggregate = IMODELHUBERROR_BASE + 41,\n FailedToGetITwinById = IMODELHUBERROR_BASE + 42,\n\n DatabaseOperationFailed = IMODELHUBERROR_BASE + 43,\n SeedFileInitializationFailed = IMODELHUBERROR_BASE + 44,\n\n FailedToGetAssetPermissions = IMODELHUBERROR_BASE + 45,\n FailedToGetAssetMembers = IMODELHUBERROR_BASE + 46,\n ITwinDoesNotExist = IMODELHUBERROR_BASE + 47,\n\n LockChunkDoesNotExist = IMODELHUBERROR_BASE + 49,\n\n CheckpointAlreadyExists = IMODELHUBERROR_BASE + 50,\n CheckpointDoesNotExist = IMODELHUBERROR_BASE + 51,\n\n // Errors that are returned for incorrect iModelHub request.\n UndefinedArgumentError = IMODELHUBERROR_REQUESTERRORBASE + 1,\n InvalidArgumentError = IMODELHUBERROR_REQUESTERRORBASE + 2,\n MissingDownloadUrlError = IMODELHUBERROR_REQUESTERRORBASE + 3,\n NotSupportedInBrowser = IMODELHUBERROR_REQUESTERRORBASE + 4,\n FileHandlerNotSet = IMODELHUBERROR_REQUESTERRORBASE + 5,\n FileNotFound = IMODELHUBERROR_REQUESTERRORBASE + 6,\n InitializationTimeout = IMODELHUBERROR_REQUESTERRORBASE + 7,\n}\n\n/** GeoServiceStatus errors\n * @public\n */\nexport enum GeoServiceStatus {\n Success = 0,\n GEOSERVICESTATUS_BASE = 0x24000,\n // Error mapped from 'IModelStatus'\n NoGeoLocation = IModelStatus.NoGeoLocation,\n // Following errors are mapped from 'GeoCoordStatus'\n OutOfUsefulRange = GEOSERVICESTATUS_BASE + 1,\n OutOfMathematicalDomain = GEOSERVICESTATUS_BASE + 2,\n NoDatumConverter = GEOSERVICESTATUS_BASE + 3,\n VerticalDatumConvertError = GEOSERVICESTATUS_BASE + 4,\n CSMapError = GEOSERVICESTATUS_BASE + 5,\n /**\n * @deprecated in 5.0. This status is never returned.\n */\n Pending = GEOSERVICESTATUS_BASE + 6,\n}\n\n/** Error status from various reality data operations\n * @alpha\n */\nexport enum RealityDataStatus {\n Success = 0,\n REALITYDATA_ERROR_BASE = 0x25000,\n InvalidData = REALITYDATA_ERROR_BASE + 1,\n}\n\n/** A function that returns a metadata object for a [[BentleyError]].\n * This is generally used for logging. However not every exception is logged, so use this if the metadata for an exception is expensive to create.\n * @public\n */\nexport type GetMetaDataFunction = () => object | undefined;\n\n/** Optional metadata attached to a [[BentleyError]]. May either be an object or a function that returns an object.\n * If this exception is logged and metadata is present, the metaData object is attached to the log entry via `JSON.stringify`\n * @public\n */\nexport type LoggingMetaData = GetMetaDataFunction | object | undefined;\n\nfunction isObject(obj: unknown): obj is { [key: string]: unknown } {\n return typeof obj === \"object\" && obj !== null;\n}\n\ninterface ErrorProps {\n message: string;\n stack?: string;\n metadata?: object;\n}\n\n/** Base exception class for iTwin.js exceptions.\n * @public\n */\nexport class BentleyError extends Error {\n private readonly _metaData: LoggingMetaData;\n\n /**\n * @param errorNumber The a number that identifies of the problem.\n * @param message message that describes the problem (should not be localized).\n * @param metaData metaData about the exception.\n */\n public constructor(public errorNumber: number, message?: string, metaData?: LoggingMetaData) {\n super(message);\n this.errorNumber = errorNumber;\n this._metaData = metaData;\n this.name = this._initName();\n }\n\n /** Returns true if this BentleyError includes (optional) metadata. */\n public get hasMetaData(): boolean { return undefined !== this._metaData; }\n\n /** get the meta data associated with this BentleyError, if any. */\n public getMetaData(): object | undefined {\n return BentleyError.getMetaData(this._metaData);\n }\n\n /** get the metadata object associated with an ExceptionMetaData, if any. */\n public static getMetaData(metaData: LoggingMetaData): object | undefined {\n return (typeof metaData === \"function\") ? metaData() : metaData;\n }\n\n /** This function returns the name of each error status. Override this method to handle more error status codes. */\n protected _initName(): string {\n switch (this.errorNumber) {\n case IModelStatus.AlreadyLoaded: return \"Already Loaded\";\n case IModelStatus.AlreadyOpen: return \"Already Open\";\n case IModelStatus.BadArg: return \"Bad Arg\";\n case IModelStatus.BadElement: return \"Bad Element\";\n case IModelStatus.BadModel: return \"Bad Model\";\n case IModelStatus.BadRequest: return \"Bad Request\";\n case IModelStatus.BadSchema: return \"Bad Schema\";\n case IModelStatus.CannotUndo: return \"Can not Undo\";\n case IModelStatus.CodeNotReserved: return \"Code Not Reserved\";\n case IModelStatus.DeletionProhibited: return \"Deletion Prohibited\";\n case IModelStatus.DuplicateCode: return \"Duplicate Code\";\n case IModelStatus.DuplicateName: return \"Duplicate Name\";\n case IModelStatus.ElementBlockedChange: return \"Element Blocked Change\";\n case IModelStatus.FileAlreadyExists: return \"File Already Exists\";\n case IModelStatus.FileNotFound: return \"File Not Found\";\n case IModelStatus.FileNotLoaded: return \"File Not Loaded\";\n case IModelStatus.ForeignKeyConstraint: return \"ForeignKey Constraint\";\n case IModelStatus.IdExists: return \"Id Exists\";\n case IModelStatus.InDynamicTransaction: return \"InDynamicTransaction\";\n case IModelStatus.InvalidCategory: return \"Invalid Category\";\n case IModelStatus.InvalidCode: return \"Invalid Code\";\n case IModelStatus.InvalidCodeSpec: return \"Invalid CodeSpec\";\n case IModelStatus.InvalidId: return \"Invalid Id\";\n case IModelStatus.InvalidName: return \"Invalid Name\";\n case IModelStatus.InvalidParent: return \"Invalid Parent\";\n case IModelStatus.InvalidProfileVersion: return \"Invalid Profile Version\";\n case IModelStatus.IsCreatingChangeSet: return \"IsCreatingChangeSet\";\n case IModelStatus.LockNotHeld: return \"Lock Not Held\";\n case IModelStatus.Mismatch2d3d: return \"Mismatch 2d3d\";\n case IModelStatus.MismatchGcs: return \"Mismatch Gcs\";\n case IModelStatus.MissingDomain: return \"Missing Domain\";\n case IModelStatus.MissingHandler: return \"Missing Handler\";\n case IModelStatus.MissingId: return \"Missing Id\";\n case IModelStatus.NoGeometry: return \"No Geometry\";\n case IModelStatus.NoMultiTxnOperation: return \"NoMultiTxnOperation\";\n case IModelStatus.NotEnabled: return \"Not Enabled\";\n case IModelStatus.NotFound: return \"Not Found\";\n case IModelStatus.NotOpen: return \"Not Open\";\n case IModelStatus.NotOpenForWrite: return \"Not Open For Write\";\n case IModelStatus.NotSameUnitBase: return \"Not Same Unit Base\";\n case IModelStatus.NothingToRedo: return \"Nothing To Redo\";\n case IModelStatus.NothingToUndo: return \"Nothing To Undo\";\n case IModelStatus.ParentBlockedChange: return \"Parent Blocked Change\";\n case IModelStatus.ReadError: return \"Read Error\";\n case IModelStatus.ReadOnly: return \"ReadOnly\";\n case IModelStatus.ReadOnlyDomain: return \"ReadOnlyDomain\";\n case IModelStatus.RepositoryManagerError: return \"RepositoryManagerError\";\n case IModelStatus.SQLiteError: return \"SQLiteError\";\n case IModelStatus.TransactionActive: return \"Transaction Active\";\n case IModelStatus.UnitsMissing: return \"Units Missing\";\n case IModelStatus.UnknownFormat: return \"Unknown Format\";\n case IModelStatus.UpgradeFailed: return \"Upgrade Failed\";\n case IModelStatus.ValidationFailed: return \"Validation Failed\";\n case IModelStatus.VersionTooNew: return \"Version Too New\";\n case IModelStatus.VersionTooOld: return \"Version Too Old\";\n case IModelStatus.ViewNotFound: return \"View Not Found\";\n case IModelStatus.WriteError: return \"Write Error\";\n case IModelStatus.WrongClass: return \"Wrong Class\";\n case IModelStatus.WrongIModel: return \"Wrong IModel\";\n case IModelStatus.WrongDomain: return \"Wrong Domain\";\n case IModelStatus.WrongElement: return \"Wrong Element\";\n case IModelStatus.WrongHandler: return \"Wrong Handler\";\n case IModelStatus.WrongModel: return \"Wrong Model\";\n case DbResult.BE_SQLITE_ERROR: return \"BE_SQLITE_ERROR\";\n case DbResult.BE_SQLITE_INTERNAL: return \"BE_SQLITE_INTERNAL\";\n case DbResult.BE_SQLITE_PERM: return \"BE_SQLITE_PERM\";\n case DbResult.BE_SQLITE_ABORT: return \"BE_SQLITE_ABORT\";\n case DbResult.BE_SQLITE_BUSY: return \"Db is busy\";\n case DbResult.BE_SQLITE_LOCKED: return \"Db is Locked\";\n case DbResult.BE_SQLITE_NOMEM: return \"BE_SQLITE_NOMEM\";\n case DbResult.BE_SQLITE_READONLY: return \"Readonly\";\n case DbResult.BE_SQLITE_INTERRUPT: return \"BE_SQLITE_INTERRUPT\";\n case DbResult.BE_SQLITE_IOERR: return \"BE_SQLITE_IOERR\";\n case DbResult.BE_SQLITE_CORRUPT: return \"BE_SQLITE_CORRUPT\";\n case DbResult.BE_SQLITE_NOTFOUND: return \"Not Found\";\n case DbResult.BE_SQLITE_FULL: return \"BE_SQLITE_FULL\";\n case DbResult.BE_SQLITE_CANTOPEN: return \"Can't open\";\n case DbResult.BE_SQLITE_PROTOCOL: return \"BE_SQLITE_PROTOCOL\";\n case DbResult.BE_SQLITE_EMPTY: return \"BE_SQLITE_EMPTY\";\n case DbResult.BE_SQLITE_SCHEMA: return \"BE_SQLITE_SCHEMA\";\n case DbResult.BE_SQLITE_TOOBIG: return \"BE_SQLITE_TOOBIG\";\n case DbResult.BE_SQLITE_MISMATCH: return \"BE_SQLITE_MISMATCH\";\n case DbResult.BE_SQLITE_MISUSE: return \"BE_SQLITE_MISUSE\";\n case DbResult.BE_SQLITE_NOLFS: return \"BE_SQLITE_NOLFS\";\n case DbResult.BE_SQLITE_AUTH: return \"BE_SQLITE_AUTH\";\n case DbResult.BE_SQLITE_FORMAT: return \"BE_SQLITE_FORMAT\";\n case DbResult.BE_SQLITE_RANGE: return \"BE_SQLITE_RANGE\";\n case DbResult.BE_SQLITE_NOTADB: return \"Not a Database\";\n case DbResult.BE_SQLITE_IOERR_READ: return \"BE_SQLITE_IOERR_READ\";\n case DbResult.BE_SQLITE_IOERR_SHORT_READ: return \"BE_SQLITE_IOERR_SHORT_READ\";\n case DbResult.BE_SQLITE_IOERR_WRITE: return \"BE_SQLITE_IOERR_WRITE\";\n case DbResult.BE_SQLITE_IOERR_FSYNC: return \"BE_SQLITE_IOERR_FSYNC\";\n case DbResult.BE_SQLITE_IOERR_DIR_FSYNC: return \"BE_SQLITE_IOERR_DIR_FSYNC\";\n case DbResult.BE_SQLITE_IOERR_TRUNCATE: return \"BE_SQLITE_IOERR_TRUNCATE\";\n case DbResult.BE_SQLITE_IOERR_FSTAT: return \"BE_SQLITE_IOERR_FSTAT\";\n case DbResult.BE_SQLITE_IOERR_UNLOCK: return \"BE_SQLITE_IOERR_UNLOCK\";\n case DbResult.BE_SQLITE_IOERR_RDLOCK: return \"BE_SQLITE_IOERR_RDLOCK\";\n case DbResult.BE_SQLITE_IOERR_DELETE: return \"BE_SQLITE_IOERR_DELETE\";\n case DbResult.BE_SQLITE_IOERR_BLOCKED: return \"BE_SQLITE_IOERR_BLOCKED\";\n case DbResult.BE_SQLITE_IOERR_NOMEM: return \"BE_SQLITE_IOERR_NOMEM\";\n case DbResult.BE_SQLITE_IOERR_ACCESS: return \"BE_SQLITE_IOERR_ACCESS\";\n case DbResult.BE_SQLITE_IOERR_CHECKRESERVEDLOCK: return \"BE_SQLITE_IOERR_CHECKRESERVEDLOCK\";\n case DbResult.BE_SQLITE_IOERR_LOCK: return \"BE_SQLITE_IOERR_LOCK\";\n case DbResult.BE_SQLITE_IOERR_CLOSE: return \"BE_SQLITE_IOERR_CLOSE\";\n case DbResult.BE_SQLITE_IOERR_DIR_CLOSE: return \"BE_SQLITE_IOERR_DIR_CLOSE\";\n case DbResult.BE_SQLITE_IOERR_SHMOPEN: return \"BE_SQLITE_IOERR_SHMOPEN\";\n case DbResult.BE_SQLITE_IOERR_SHMSIZE: return \"BE_SQLITE_IOERR_SHMSIZE\";\n case DbResult.BE_SQLITE_IOERR_SHMLOCK: return \"BE_SQLITE_IOERR_SHMLOCK\";\n case DbResult.BE_SQLITE_IOERR_SHMMAP: return \"BE_SQLITE_IOERR_SHMMAP\";\n case DbResult.BE_SQLITE_IOERR_SEEK: return \"BE_SQLITE_IOERR_SEEK\";\n case DbResult.BE_SQLITE_IOERR_DELETE_NOENT: return \"BE_SQLITE_IOERR_DELETE_NOENT\";\n\n case DbResult.BE_SQLITE_ERROR_DataTransformRequired: return \"Schema update require to transform data\";\n case DbResult.BE_SQLITE_ERROR_FileExists: return \"File Exists\";\n case DbResult.BE_SQLITE_ERROR_AlreadyOpen: return \"Already Open\";\n case DbResult.BE_SQLITE_ERROR_NoPropertyTable: return \"No Property Table\";\n case DbResult.BE_SQLITE_ERROR_FileNotFound: return \"File Not Found\";\n case DbResult.BE_SQLITE_ERROR_NoTxnActive: return \"No Txn Active\";\n case DbResult.BE_SQLITE_ERROR_BadDbProfile: return \"Bad Db Profile\";\n case DbResult.BE_SQLITE_ERROR_InvalidProfileVersion: return \"Invalid Profile Version\";\n case DbResult.BE_SQLITE_ERROR_ProfileUpgradeFailed: return \"Profile Upgrade Failed\";\n case DbResult.BE_SQLITE_ERROR_ProfileTooOldForReadWrite: return \"Profile Too Old For ReadWrite\";\n case DbResult.BE_SQLITE_ERROR_ProfileTooOld: return \"Profile Too Old\";\n case DbResult.BE_SQLITE_ERROR_ProfileTooNewForReadWrite: return \"Profile Too New For ReadWrite\";\n case DbResult.BE_SQLITE_ERROR_ProfileTooNew: return \"Profile Too New\";\n case DbResult.BE_SQLITE_ERROR_ChangeTrackError: return \"ChangeTrack Error\";\n case DbResult.BE_SQLITE_ERROR_InvalidChangeSetVersion: return \"Invalid ChangeSet Version\";\n case DbResult.BE_SQLITE_ERROR_SchemaUpgradeRequired: return \"Schema Upgrade Required\";\n case DbResult.BE_SQLITE_ERROR_SchemaTooNew: return \"Schema Too New\";\n case DbResult.BE_SQLITE_ERROR_SchemaTooOld: return \"Schema Too Old\";\n case DbResult.BE_SQLITE_ERROR_SchemaLockFailed: return \"Schema Lock Failed\";\n case DbResult.BE_SQLITE_ERROR_SchemaUpgradeFailed: return \"Schema Upgrade Failed\";\n case DbResult.BE_SQLITE_ERROR_SchemaImportFailed: return \"Schema Import Failed\";\n case DbResult.BE_SQLITE_ERROR_CouldNotAcquireLocksOrCodes: return \"Could Not Acquire Locks Or Codes\";\n case DbResult.BE_SQLITE_ERROR_SchemaUpgradeRecommended: return \"Recommended that the schemas found in the database be upgraded\";\n case DbResult.BE_SQLITE_LOCKED_SHAREDCACHE: return \"BE_SQLITE_LOCKED_SHAREDCACHE\";\n case DbResult.BE_SQLITE_BUSY_RECOVERY: return \"BE_SQLITE_BUSY_RECOVERY\";\n case DbResult.BE_SQLITE_CANTOPEN_NOTEMPDIR: return \"SQLite No Temp Dir\";\n case DbResult.BE_SQLITE_CANTOPEN_ISDIR: return \"BE_SQLITE_CANTOPEN_ISDIR\";\n case DbResult.BE_SQLITE_CANTOPEN_FULLPATH: return \"BE_SQLITE_CANTOPEN_FULLPATH\";\n case DbResult.BE_SQLITE_CORRUPT_VTAB: return \"BE_SQLITE_CORRUPT_VTAB\";\n case DbResult.BE_SQLITE_READONLY_RECOVERY: return \"BE_SQLITE_READONLY_RECOVERY\";\n case DbResult.BE_SQLITE_READONLY_CANTLOCK: return \"BE_SQLITE_READONLY_CANTLOCK\";\n case DbResult.BE_SQLITE_READONLY_ROLLBACK: return \"BE_SQLITE_READONLY_ROLLBACK\";\n case DbResult.BE_SQLITE_ABORT_ROLLBACK: return \"BE_SQLITE_ABORT_ROLLBACK\";\n case DbResult.BE_SQLITE_CONSTRAINT_CHECK: return \"BE_SQLITE_CONSTRAINT_CHECK\";\n case DbResult.BE_SQLITE_CONSTRAINT_COMMITHOOK: return \"CommitHook Constraint Error\";\n case DbResult.BE_SQLITE_CONSTRAINT_FOREIGNKEY: return \"Foreign Key Constraint Error\";\n case DbResult.BE_SQLITE_CONSTRAINT_FUNCTION: return \"Function Constraint Error\";\n case DbResult.BE_SQLITE_CONSTRAINT_NOTNULL: return \"NotNull Constraint Error\";\n case DbResult.BE_SQLITE_CONSTRAINT_PRIMARYKEY: return \"Primary Key Constraint Error\";\n case DbResult.BE_SQLITE_CONSTRAINT_TRIGGER: return \"Trigger Constraint Error\";\n case DbResult.BE_SQLITE_CONSTRAINT_UNIQUE: return \"Unique Constraint Error\";\n case DbResult.BE_SQLITE_CONSTRAINT_VTAB: return \"VTable Constraint Error\";\n case BentleyStatus.ERROR: return \"Error\";\n case BriefcaseStatus.CannotAcquire: return \"CannotAcquire\";\n case BriefcaseStatus.CannotDownload: return \"CannotDownload\";\n case BriefcaseStatus.CannotCopy: return \"CannotCopy\";\n case BriefcaseStatus.CannotDelete: return \"CannotDelete\";\n case BriefcaseStatus.VersionNotFound: return \"VersionNotFound\";\n case BriefcaseStatus.DownloadCancelled: return \"DownloadCancelled\";\n case BriefcaseStatus.ContainsDeletedChangeSets: return \"ContainsDeletedChangeSets\";\n case RpcInterfaceStatus.IncompatibleVersion: return \"RpcInterfaceStatus.IncompatibleVersion\";\n case ChangeSetStatus.ApplyError: return \"Error applying a change set\";\n case ChangeSetStatus.ChangeTrackingNotEnabled: return \"Change tracking has not been enabled. The ChangeSet API mandates this\";\n case ChangeSetStatus.CorruptedChangeStream: return \"Contents of the change stream are corrupted and does not match the ChangeSet\";\n case ChangeSetStatus.FileNotFound: return \"File containing the changes was not found\";\n case ChangeSetStatus.FileWriteError: return \"Error writing the contents of the change set to the backing change stream file\";\n case ChangeSetStatus.HasLocalChanges: return \"Cannot perform the operation since the Db has local changes\";\n case ChangeSetStatus.HasUncommittedChanges: return \"Cannot perform the operation since current transaction has uncommitted changes\";\n case ChangeSetStatus.InvalidId: return \"Invalid ChangeSet Id\";\n case ChangeSetStatus.InvalidVersion: return \"Invalid version of the change set\";\n case ChangeSetStatus.InDynamicTransaction: return \"Cannot perform the operation since system is in the middle of a dynamic transaction\";\n case ChangeSetStatus.IsCreatingChangeSet: return \"Cannot perform operation since system is in the middle of a creating a change set\";\n case ChangeSetStatus.IsNotCreatingChangeSet: return \"Cannot perform operation since the system is not creating a change set\";\n case ChangeSetStatus.MergePropagationError: return \"Error propagating the changes after the merge\";\n case ChangeSetStatus.NothingToMerge: return \"No change sets to merge\";\n case ChangeSetStatus.NoTransactions: return \"No transactions are available to create a change set\";\n case ChangeSetStatus.ParentMismatch: return \"Parent change set of the Db does not match the parent id of the change set\";\n case ChangeSetStatus.SQLiteError: return \"Error performing a SQLite operation on the Db\";\n case ChangeSetStatus.WrongDgnDb: return \"ChangeSet originated in a different Db\";\n case ChangeSetStatus.CouldNotOpenDgnDb: return \"Could not open the DgnDb to merge change set\";\n case ChangeSetStatus.MergeSchemaChangesOnOpen: return \"Cannot merge changes in in an open DgnDb. Close the DgnDb, and process the operation when it is opened\";\n case ChangeSetStatus.ReverseOrReinstateSchemaChanges: return \"Cannot reverse or reinstate schema changes.\";\n case ChangeSetStatus.ProcessSchemaChangesOnOpen: return \"Cannot process changes schema changes in an open DgnDb. Close the DgnDb, and process the operation when it is opened\";\n case ChangeSetStatus.CannotMergeIntoReadonly: return \"Cannot merge changes into a Readonly DgnDb\";\n case ChangeSetStatus.CannotMergeIntoMaster: return \"Cannot merge changes into a Master DgnDb\";\n case ChangeSetStatus.CannotMergeIntoReversed: return \"Cannot merge changes into a DgnDb that has reversed change sets\";\n case ChangeSetStatus.DownloadCancelled: return \"ChangeSet(s) download was cancelled.\";\n case RepositoryStatus.ServerUnavailable: return \"ServerUnavailable\";\n case RepositoryStatus.LockAlreadyHeld: return \"LockAlreadyHeld\";\n case RepositoryStatus.SyncError: return \"SyncError\";\n case RepositoryStatus.InvalidResponse: return \"InvalidResponse\";\n case RepositoryStatus.PendingTransactions: return \"PendingTransactions\";\n case RepositoryStatus.LockUsed: return \"LockUsed\";\n case RepositoryStatus.CannotCreateChangeSet: return \"CannotCreateChangeSet\";\n case RepositoryStatus.InvalidRequest: return \"InvalidRequest\";\n case RepositoryStatus.ChangeSetRequired: return \"ChangeSetRequired\";\n case RepositoryStatus.CodeUnavailable: return \"CodeUnavailable\";\n case RepositoryStatus.CodeNotReserved: return \"CodeNotReserved\";\n case RepositoryStatus.CodeUsed: return \"CodeUsed\";\n case RepositoryStatus.LockNotHeld: return \"LockNotHeld\";\n case RepositoryStatus.RepositoryIsLocked: return \"RepositoryIsLocked\";\n case RepositoryStatus.ChannelConstraintViolation: return \"ChannelConstraintViolation\";\n case HttpStatus.Info: return \"HTTP Info\";\n case HttpStatus.Redirection: return \"HTTP Redirection\";\n case HttpStatus.ClientError: return \"HTTP Client error\";\n case HttpStatus.ServerError: return \"HTTP Server error\";\n case IModelHubStatus.Unknown: return \"Unknown error\";\n case IModelHubStatus.MissingRequiredProperties: return \"Missing required properties\";\n case IModelHubStatus.InvalidPropertiesValues: return \"Invalid properties values\";\n case IModelHubStatus.UserDoesNotHavePermission: return \"User does not have permission\";\n case IModelHubStatus.UserDoesNotHaveAccess: return \"User does not have access\";\n case IModelHubStatus.InvalidBriefcase: return \"Invalid briefcase\";\n case IModelHubStatus.BriefcaseDoesNotExist: return \"Briefcase does not exist\";\n case IModelHubStatus.BriefcaseDoesNotBelongToUser: return \"Briefcase does not belong to user\";\n case IModelHubStatus.AnotherUserPushing: return \"Another user pushing\";\n case IModelHubStatus.ChangeSetAlreadyExists: return \"ChangeSet already exists\";\n case IModelHubStatus.ChangeSetDoesNotExist: return \"ChangeSet does not exist\";\n case IModelHubStatus.FileIsNotUploaded: return \"File is not uploaded\";\n case IModelHubStatus.iModelIsNotInitialized: return \"iModel is not initialized\";\n case IModelHubStatus.ChangeSetPointsToBadSeed: return \"ChangeSet points to a bad seed file\";\n case IModelHubStatus.OperationFailed: return \"iModelHub operation has failed\";\n case IModelHubStatus.PullIsRequired: return \"Pull is required\";\n case IModelHubStatus.MaximumNumberOfBriefcasesPerUser: return \"Limit of briefcases per user was reached\";\n case IModelHubStatus.MaximumNumberOfBriefcasesPerUserPerMinute: return \"Limit of briefcases per user per minute was reached\";\n case IModelHubStatus.DatabaseTemporarilyLocked: return \"Database is temporarily locked\";\n case IModelHubStatus.iModelIsLocked: return \"iModel is locked\";\n case IModelHubStatus.CodesExist: return \"Code already exists\";\n case IModelHubStatus.LocksExist: return \"Lock already exists\";\n case IModelHubStatus.iModelAlreadyExists: return \"iModel already exists\";\n case IModelHubStatus.iModelDoesNotExist: return \"iModel does not exist\";\n case IModelHubStatus.LockDoesNotExist: return \"Lock does not exist\";\n case IModelHubStatus.LockChunkDoesNotExist: return \"Lock chunk does not exist\";\n case IModelHubStatus.LockOwnedByAnotherBriefcase: return \"Lock is owned by another briefcase\";\n case IModelHubStatus.CodeStateInvalid: return \"Code state is invalid\";\n case IModelHubStatus.CodeReservedByAnotherBriefcase: return \"Code is reserved by another briefcase\";\n case IModelHubStatus.CodeDoesNotExist: return \"Code does not exist\";\n case IModelHubStatus.FileDoesNotExist: return \"File does not exist\";\n case IModelHubStatus.FileAlreadyExists: return \"File already exists\";\n case IModelHubStatus.EventTypeDoesNotExist: return \"Event type does not exist\";\n case IModelHubStatus.EventSubscriptionDoesNotExist: return \"Event subscription does not exist\";\n case IModelHubStatus.EventSubscriptionAlreadyExists: return \"Event subscription already exists\";\n case IModelHubStatus.ITwinIdIsNotSpecified: return \"ITwin Id is not specified\";\n case IModelHubStatus.FailedToGetITwinPermissions: return \"Failed to get iTwin permissions\";\n case IModelHubStatus.FailedToGetITwinMembers: return \"Failed to get iTwin members\";\n case IModelHubStatus.FailedToGetAssetPermissions: return \"Failed to get asset permissions\";\n case IModelHubStatus.FailedToGetAssetMembers: return \"Failed to get asset members\";\n case IModelHubStatus.ChangeSetAlreadyHasVersion: return \"ChangeSet already has version\";\n case IModelHubStatus.VersionAlreadyExists: return \"Version already exists\";\n case IModelHubStatus.JobSchedulingFailed: return \"Failed to schedule a background job\";\n case IModelHubStatus.ConflictsAggregate: return \"Codes or locks are owned by another briefcase\";\n case IModelHubStatus.FailedToGetITwinById: return \"Failed to query iTwin by its id\";\n case IModelHubStatus.DatabaseOperationFailed: return \"Database operation has failed\";\n case IModelHubStatus.ITwinDoesNotExist: return \"ITwin does not exist\";\n case IModelHubStatus.UndefinedArgumentError: return \"Undefined argument\";\n case IModelHubStatus.InvalidArgumentError: return \"Invalid argument\";\n case IModelHubStatus.MissingDownloadUrlError: return \"Missing download url\";\n case IModelHubStatus.NotSupportedInBrowser: return \"Not supported in browser\";\n case IModelHubStatus.FileHandlerNotSet: return \"File handler is not set\";\n case IModelHubStatus.FileNotFound: return \"File not found\";\n case GeoServiceStatus.NoGeoLocation: return \"No GeoLocation\";\n case GeoServiceStatus.OutOfUsefulRange: return \"Out of useful range\";\n case GeoServiceStatus.OutOfMathematicalDomain: return \"Out of mathematical domain\";\n case GeoServiceStatus.NoDatumConverter: return \"No datum converter\";\n case GeoServiceStatus.VerticalDatumConvertError: return \"Vertical datum convert error\";\n case GeoServiceStatus.CSMapError: return \"CSMap error\";\n case GeoServiceStatus.Pending: return \"Pending\"; // eslint-disable-line @typescript-eslint/no-deprecated\n case RealityDataStatus.InvalidData: return \"Invalid or unknown data\";\n case DbResult.BE_SQLITE_OK:\n case DbResult.BE_SQLITE_ROW:\n case DbResult.BE_SQLITE_DONE:\n case BentleyStatus.SUCCESS:\n return \"Success\";\n\n default:\n return `Error (${this.errorNumber})`;\n }\n }\n\n /** Use run-time type checking to safely get a useful string summary of an unknown error value, or `\"\"` if none exists.\n * @note It's recommended to use this function in `catch` clauses, where a caught value cannot be assumed to be `instanceof Error`\n * @public\n */\n public static getErrorMessage(error: unknown): string {\n if (typeof error === \"string\")\n return error;\n\n if (error instanceof Error)\n return error.toString();\n\n if (isObject(error)) {\n if (typeof error.message === \"string\")\n return error.message;\n\n if (typeof error.msg === \"string\")\n return error.msg;\n\n // eslint-disable-next-line @typescript-eslint/no-base-to-string\n if (error.toString() !== \"[object Object]\")\n return error.toString(); // eslint-disable-line @typescript-eslint/no-base-to-string\n }\n\n return \"\";\n }\n\n /** Use run-time type checking to safely get the call stack of an unknown error value, if possible.\n * @note It's recommended to use this function in `catch` clauses, where a caught value cannot be assumed to be `instanceof Error`\n * @public\n */\n public static getErrorStack(error: unknown): string | undefined {\n if (isObject(error) && typeof error.stack === \"string\")\n return error.stack;\n\n return undefined;\n }\n\n /** Use run-time type checking to safely get the metadata with an unknown error value, if possible.\n * @note It's recommended to use this function in `catch` clauses, where a caught value cannot be assumed to be `instanceof BentleyError`\n * @see [[BentleyError.getMetaData]]\n * @public\n */\n public static getErrorMetadata(error: unknown): object | undefined {\n if (isObject(error) && typeof error.getMetaData === \"function\") {\n const metadata = error.getMetaData();\n if (typeof metadata === \"object\" && metadata !== null)\n return metadata;\n }\n\n return undefined;\n }\n\n /** Returns a new `ErrorProps` object representing an unknown error value. Useful for logging or wrapping/re-throwing caught errors.\n * @note Unlike `Error` objects (which lose messages and call stacks when serialized to JSON), objects\n * returned by this are plain old JavaScript objects, and can be easily logged/serialized to JSON.\n * @public\n */\n public static getErrorProps(error: unknown): ErrorProps {\n const serialized: ErrorProps = {\n message: BentleyError.getErrorMessage(error),\n };\n\n const stack = BentleyError.getErrorStack(error);\n if (stack)\n serialized.stack = stack;\n\n const metadata = BentleyError.getErrorMetadata(error);\n if (metadata)\n serialized.metadata = metadata;\n\n return serialized;\n }\n}\n\n"]}
1
+ {"version":3,"file":"BentleyError.js","sourceRoot":"","sources":["../../src/BentleyError.ts"],"names":[],"mappings":";AAAA;;;+FAG+F;AAC/F;;GAEG;;;AAEH,yCAAsC;AACtC,kEAA+D;AAC/D,2CAAwC;AA6BxC,YAAY;AACZ,IAAiB,UAAU,CA8B1B;AA9BD,WAAiB,UAAU;IACzB;;OAEG;IACH,SAAgB,MAAM,CAAuB,IAAyB;QACpE,MAAM,GAAG,GAAG,IAAI,KAAK,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACpC,MAAM,CAAC,MAAM,CAAC,GAAG,EAAE,IAAI,CAAC,CAAC;QACzB,GAAG,CAAC,IAAI,GAAG,IAAI,CAAC,YAAY,CAAC,GAAG,CAAC,CAAC,6DAA6D;QAC/F,OAAO,GAAQ,CAAC;IAClB,CAAC;IALe,iBAAM,SAKrB,CAAA;IAED;;OAEG;IACH,SAAgB,UAAU,CAAuB,IAAyB;QACxE,MAAM,MAAM,CAAC,IAAI,CAAC,CAAC;IACrB,CAAC;IAFe,qBAAU,aAEzB,CAAA;IAED;;;;;;;MAOE;IACF,SAAgB,OAAO,CAAuB,KAAc,EAAE,KAAa,EAAE,GAAY;QACvF,OAAO,qBAAS,CAAC,QAAQ,CAAC,KAAK,CAAC,IAAI,cAAc,IAAI,KAAK,IAAI,qBAAS,CAAC,QAAQ,CAAC,KAAK,CAAC,YAAY,CAAC;eAChG,KAAK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,QAAQ,CAAC;QACpB,CAAC;QAED,OAAO,SAAS,CAAC;IACnB,CAAC;IAED;;;;OAIG;IACI,MAAM,CAAC,aAAa,CAAC,KAAc;QACxC,MAAM,UAAU,GAAe;YAC7B,OAAO,EAAE,YAAY,CAAC,eAAe,CAAC,KAAK,CAAC;SAC7C,CAAC;QAEF,MAAM,KAAK,GAAG,YAAY,CAAC,aAAa,CAAC,KAAK,CAAC,CAAC;QAChD,IAAI,KAAK;YACP,UAAU,CAAC,KAAK,GAAG,KAAK,CAAC;QAE3B,MAAM,QAAQ,GAAG,YAAY,CAAC,gBAAgB,CAAC,KAAK,CAAC,CAAC;QACtD,IAAI,QAAQ;YACV,UAAU,CAAC,QAAQ,GAAG,QAAQ,CAAC;QAEjC,OAAO,UAAU,CAAC;IACpB,CAAC;;AAvZH,oCAwZC","sourcesContent":["/*---------------------------------------------------------------------------------------------\n* Copyright (c) Bentley Systems, Incorporated. All rights reserved.\n* See LICENSE.md in the project root for license terms and full copyright notice.\n*--------------------------------------------------------------------------------------------*/\n/** @packageDocumentation\n * @module Errors\n */\n\nimport { DbResult } from \"./BeSQLite\";\nimport { RepositoryStatus } from \"./internal/RepositoryStatus\";\nimport { JsonUtils } from \"./JsonUtils\";\nimport { Optional } from \"./UtilityTypes\";\n\n/** Uniquely identifies a specific kind of [[ITwinError]].\n * @beta\n */\nexport interface ITwinErrorId {\n /** A \"namespace\" serving as a qualifier for the [[key]]. It should be specific enough to ensure uniqueness across all applications.\n * For example, all errors originating from a given package should use that package's full name as their scope.\n */\n readonly scope: string;\n /** Uniquely identifies a specific kind of [[ITwinError]] within the [[scope]]. */\n readonly key: string;\n}\n\n/** The interface that all exceptions thrown by iTwin.js libraries and applications should implement.\n * Specific kinds of `ITwinError`s are identified by an [[ITwinErrorId]] that allows programmers to identify errors when they are caught without relying\n * on specific class hierarchies, which is especially important when errors are marshalled across process boundaries.\n * You can extend `ITwinError` to add properties that provide programmers with additional context for a particular kind of error.\n * When catching errors, programmers can use [[isError]] to determine if the error is of a specific sub-type, and if so access the\n * additional properties.\n * Those additional properties will also be logged as metadata by [[Logger.logException]].\n * @beta\n */\nexport interface ITwinError extends Error {\n /** Uniquely identifies the kind of error. */\n readonly iTwinErrorId: ITwinErrorId;\n}\n\n/** @beta */\nexport namespace ITwinError {\n /** Instantiate a new `ITwinError` or subtype thereof.\n * @see [[ITwinError.throwError]] to conveniently instantiate and throw the error.\n */\n export function create<T extends ITwinError>(args: Optional<T, \"name\">): T {\n const err = new Error(args.message);\n Object.assign(err, args);\n err.name = args.iTwinErrorId.key; // helpful because this is used by `toString` for Error class\n return err as T;\n }\n\n /** Instantiate and immediately throw an `ITwinError`.\n * @see [[ITwinError.create]] to instantiate an error without throwing it.\n */\n export function throwError<T extends ITwinError>(args: Optional<T, \"name\">): never {\n throw create(args);\n }\n\n /**\n * Determine whether an error object was thrown by iTwin.js and has a specific scope and key.\n *\n * If the test succeeds, the type of `error` is coerced to `T`\n * @param error The error to ve verified.\n * @param scope value for `error.iTwinErrorId.scope`\n * @param key value for `error.iTwinErrorId.key`\n */\n export function isError<T extends ITwinError>(error: unknown, scope: string, key?: string): error is T {\n return JsonUtils.isObject(error) && \"iTwinErrorId\" in error && JsonUtils.isObject(error.iTwinErrorId)\n && error.iTwinErrorId.scope === scope && (undefined === key || error.iTwinErrorId.key === key);\n }\n}\n\n/** Standard status code.\n * This status code should be rarely used.\n * Prefer to throw an exception to indicate an error, rather than returning a special status code.\n * If a status code is to be returned, prefer to return a more specific error status type such as IModelStatus or DbResult.\n * @public\n */\nexport enum BentleyStatus {\n SUCCESS = 0x0000,\n ERROR = 0x8000,\n}\n\n/** Status codes that are used in conjunction with [[BentleyError]].\n * Error status codes are divided into separate ranges for different kinds of errors. All known ranges at least should be defined here, to avoid collisions.\n * @public\n */\nexport enum IModelStatus {\n IMODEL_ERROR_BASE = 0x10000,\n Success = 0,\n AlreadyLoaded = IMODEL_ERROR_BASE + 1,\n AlreadyOpen = IMODEL_ERROR_BASE + 2,\n BadArg = IMODEL_ERROR_BASE + 3,\n BadElement = IMODEL_ERROR_BASE + 4,\n BadModel = IMODEL_ERROR_BASE + 5,\n BadRequest = IMODEL_ERROR_BASE + 6,\n BadSchema = IMODEL_ERROR_BASE + 7,\n CannotUndo = IMODEL_ERROR_BASE + 8,\n CodeNotReserved = IMODEL_ERROR_BASE + 9,\n DeletionProhibited = IMODEL_ERROR_BASE + 10,\n DuplicateCode = IMODEL_ERROR_BASE + 11,\n DuplicateName = IMODEL_ERROR_BASE + 12,\n ElementBlockedChange = IMODEL_ERROR_BASE + 13,\n FileAlreadyExists = IMODEL_ERROR_BASE + 14,\n FileNotFound = IMODEL_ERROR_BASE + 15,\n FileNotLoaded = IMODEL_ERROR_BASE + 16,\n ForeignKeyConstraint = IMODEL_ERROR_BASE + 17,\n IdExists = IMODEL_ERROR_BASE + 18,\n InDynamicTransaction = IMODEL_ERROR_BASE + 19,\n InvalidCategory = IMODEL_ERROR_BASE + 20,\n InvalidCode = IMODEL_ERROR_BASE + 21,\n InvalidCodeSpec = IMODEL_ERROR_BASE + 22,\n InvalidId = IMODEL_ERROR_BASE + 23,\n InvalidName = IMODEL_ERROR_BASE + 24,\n InvalidParent = IMODEL_ERROR_BASE + 25,\n InvalidProfileVersion = IMODEL_ERROR_BASE + 26,\n IsCreatingChangeSet = IMODEL_ERROR_BASE + 27,\n LockNotHeld = IMODEL_ERROR_BASE + 28,\n Mismatch2d3d = IMODEL_ERROR_BASE + 29,\n MismatchGcs = IMODEL_ERROR_BASE + 30,\n MissingDomain = IMODEL_ERROR_BASE + 31,\n MissingHandler = IMODEL_ERROR_BASE + 32,\n MissingId = IMODEL_ERROR_BASE + 33,\n NoGeometry = IMODEL_ERROR_BASE + 34,\n NoMultiTxnOperation = IMODEL_ERROR_BASE + 35,\n NotEnabled = IMODEL_ERROR_BASE + 37,\n NotFound = IMODEL_ERROR_BASE + 38,\n NotOpen = IMODEL_ERROR_BASE + 39,\n NotOpenForWrite = IMODEL_ERROR_BASE + 40,\n NotSameUnitBase = IMODEL_ERROR_BASE + 41,\n NothingToRedo = IMODEL_ERROR_BASE + 42,\n NothingToUndo = IMODEL_ERROR_BASE + 43,\n ParentBlockedChange = IMODEL_ERROR_BASE + 44,\n ReadError = IMODEL_ERROR_BASE + 45,\n ReadOnly = IMODEL_ERROR_BASE + 46,\n ReadOnlyDomain = IMODEL_ERROR_BASE + 47,\n RepositoryManagerError = IMODEL_ERROR_BASE + 48,\n SQLiteError = IMODEL_ERROR_BASE + 49,\n TransactionActive = IMODEL_ERROR_BASE + 50,\n UnitsMissing = IMODEL_ERROR_BASE + 51,\n UnknownFormat = IMODEL_ERROR_BASE + 52,\n UpgradeFailed = IMODEL_ERROR_BASE + 53,\n ValidationFailed = IMODEL_ERROR_BASE + 54,\n VersionTooNew = IMODEL_ERROR_BASE + 55,\n VersionTooOld = IMODEL_ERROR_BASE + 56,\n ViewNotFound = IMODEL_ERROR_BASE + 57,\n WriteError = IMODEL_ERROR_BASE + 58,\n WrongClass = IMODEL_ERROR_BASE + 59,\n WrongIModel = IMODEL_ERROR_BASE + 60,\n WrongDomain = IMODEL_ERROR_BASE + 61,\n WrongElement = IMODEL_ERROR_BASE + 62,\n WrongHandler = IMODEL_ERROR_BASE + 63,\n WrongModel = IMODEL_ERROR_BASE + 64,\n ConstraintNotUnique = IMODEL_ERROR_BASE + 65,\n NoGeoLocation = IMODEL_ERROR_BASE + 66,\n ServerTimeout = IMODEL_ERROR_BASE + 67,\n NoContent = IMODEL_ERROR_BASE + 68,\n NotRegistered = IMODEL_ERROR_BASE + 69,\n FunctionNotFound = IMODEL_ERROR_BASE + 70,\n NoActiveCommand = IMODEL_ERROR_BASE + 71,\n Aborted = IMODEL_ERROR_BASE + 72,\n}\n\n/** Error statuses produced by various briefcase operations, typically encountered as the `errorNumber` of an [IModelError]($common).\n * @public\n */\nexport enum BriefcaseStatus {\n BRIEFCASE_STATUS_BASE = 0x20000,\n CannotAcquire = BRIEFCASE_STATUS_BASE,\n CannotDownload = BRIEFCASE_STATUS_BASE + 1,\n CannotUpload = BRIEFCASE_STATUS_BASE + 2,\n CannotCopy = BRIEFCASE_STATUS_BASE + 3,\n CannotDelete = BRIEFCASE_STATUS_BASE + 4,\n VersionNotFound = BRIEFCASE_STATUS_BASE + 5,\n CannotApplyChanges = BRIEFCASE_STATUS_BASE + 6,\n DownloadCancelled = BRIEFCASE_STATUS_BASE + 7,\n ContainsDeletedChangeSets = BRIEFCASE_STATUS_BASE + 8,\n}\n\n/** RpcInterface status codes\n * @beta\n */\nexport enum RpcInterfaceStatus {\n Success = 0,\n RPC_INTERFACE_ERROR_BASE = 0x21000,\n /** The RpcInterface implemented by the server is incompatible with the interface requested by the client. */\n IncompatibleVersion = RPC_INTERFACE_ERROR_BASE,\n}\n\n/** Error statuses produced by various Changeset operations, typically encountered as the `errorNumber` of an [IModelError]($common).\n * @public\n */\nexport enum ChangeSetStatus { // Note: Values must be kept in sync with ChangeSetStatus in DgnPlatform\n Success = 0,\n CHANGESET_ERROR_BASE = 0x16000,\n /** Error applying a change set when reversing or reinstating it */\n ApplyError = CHANGESET_ERROR_BASE + 1,\n /** Change tracking has not been enabled. The ChangeSet API mandates this. */\n ChangeTrackingNotEnabled = CHANGESET_ERROR_BASE + 2,\n /** Contents of the change stream are corrupted and does not match the ChangeSet */\n CorruptedChangeStream = CHANGESET_ERROR_BASE + 3,\n /** File containing the changes to the change set is not found */\n FileNotFound = CHANGESET_ERROR_BASE + 4,\n /** Error writing the contents of the change set to the backing change stream file */\n FileWriteError = CHANGESET_ERROR_BASE + 5,\n /** Cannot perform the operation since the Db has local changes */\n HasLocalChanges = CHANGESET_ERROR_BASE + 6,\n /** Cannot perform the operation since current transaction has uncommitted changes */\n HasUncommittedChanges = CHANGESET_ERROR_BASE + 7,\n /** Invalid ChangeSet Id */\n InvalidId = CHANGESET_ERROR_BASE + 8,\n /** Invalid version of the change set */\n InvalidVersion = CHANGESET_ERROR_BASE + 9,\n /** Cannot perform the operation since system is in the middle of a dynamic transaction */\n InDynamicTransaction = CHANGESET_ERROR_BASE + 10,\n /** Cannot perform operation since system is in the middle of a creating a change set */\n IsCreatingChangeSet = CHANGESET_ERROR_BASE + 11,\n /** Cannot perform operation since the system is not creating a change set */\n IsNotCreatingChangeSet = CHANGESET_ERROR_BASE + 12,\n /** Error propagating the changes after the merge */\n MergePropagationError = CHANGESET_ERROR_BASE + 13,\n /** No change sets to merge */\n NothingToMerge = CHANGESET_ERROR_BASE + 14,\n /** No transactions are available to create a change set */\n NoTransactions = CHANGESET_ERROR_BASE + 15,\n /** Parent change set of the Db does not match the parent id of the change set */\n ParentMismatch = CHANGESET_ERROR_BASE + 16,\n /** Error performing a SQLite operation on the Db */\n SQLiteError = CHANGESET_ERROR_BASE + 17,\n /** ChangeSet originated in a different Db */\n WrongDgnDb = CHANGESET_ERROR_BASE + 18,\n /** Could not open the DgnDb to merge change set */\n CouldNotOpenDgnDb = CHANGESET_ERROR_BASE + 19,\n /** Cannot merge changes in in an open DgnDb. Close the DgnDb, and process the operation when it is opened. */\n MergeSchemaChangesOnOpen = CHANGESET_ERROR_BASE + 20,\n /** Cannot reverse or reinstate schema changes. */\n ReverseOrReinstateSchemaChanges = CHANGESET_ERROR_BASE + 21,\n /** Cannot process changes schema changes in an open DgnDb. Close the DgnDb, and process the operation when it is opened. */\n ProcessSchemaChangesOnOpen = CHANGESET_ERROR_BASE + 22,\n /** Cannot merge changes into a Readonly DgnDb. */\n CannotMergeIntoReadonly = CHANGESET_ERROR_BASE + 23,\n /** Cannot merge changes into a Master DgnDb. */\n CannotMergeIntoMaster = CHANGESET_ERROR_BASE + 24,\n /** Cannot merge changes into a DgnDb that has reversed change sets. */\n CannotMergeIntoReversed = CHANGESET_ERROR_BASE + 25,\n /** ChangeSet(s) download was cancelled. */\n DownloadCancelled = CHANGESET_ERROR_BASE + 26,\n}\n\n/** Status from returned HTTP status code\n * @beta\n */\nexport enum HttpStatus {\n /** 2xx Success */\n Success = 0,\n /** 1xx Informational responses */\n Info = 0x17001,\n /** 3xx Redirection */\n Redirection = 0x17002,\n /** 4xx Client errors */\n ClientError = 0x17003,\n /** 5xx Server errors */\n ServerError = 0x17004,\n}\n\n/** Statuses produced by APIs that interact with iModelHub, typically encountered as the `errorNumber` of an [IModelError]($common).\n * @public\n */\nexport enum IModelHubStatus {\n Success = 0,\n IMODELHUBERROR_BASE = 0x19000,\n IMODELHUBERROR_REQUESTERRORBASE = 0x19100,\n Unknown = IMODELHUBERROR_BASE + 1,\n MissingRequiredProperties = IMODELHUBERROR_BASE + 2,\n InvalidPropertiesValues = IMODELHUBERROR_BASE + 3,\n UserDoesNotHavePermission = IMODELHUBERROR_BASE + 4,\n UserDoesNotHaveAccess = IMODELHUBERROR_BASE + 5,\n InvalidBriefcase = IMODELHUBERROR_BASE + 6,\n BriefcaseDoesNotExist = IMODELHUBERROR_BASE + 7,\n BriefcaseDoesNotBelongToUser = IMODELHUBERROR_BASE + 8,\n AnotherUserPushing = IMODELHUBERROR_BASE + 9,\n ChangeSetAlreadyExists = IMODELHUBERROR_BASE + 10,\n ChangeSetDoesNotExist = IMODELHUBERROR_BASE + 11,\n FileIsNotUploaded = IMODELHUBERROR_BASE + 12,\n iModelIsNotInitialized = IMODELHUBERROR_BASE + 13,\n ChangeSetPointsToBadSeed = IMODELHUBERROR_BASE + 14,\n OperationFailed = IMODELHUBERROR_BASE + 15,\n PullIsRequired = IMODELHUBERROR_BASE + 16,\n MaximumNumberOfBriefcasesPerUser = IMODELHUBERROR_BASE + 17,\n MaximumNumberOfBriefcasesPerUserPerMinute = IMODELHUBERROR_BASE + 18,\n DatabaseTemporarilyLocked = IMODELHUBERROR_BASE + 19,\n iModelIsLocked = IMODELHUBERROR_BASE + 20,\n CodesExist = IMODELHUBERROR_BASE + 21,\n LocksExist = IMODELHUBERROR_BASE + 22,\n iModelAlreadyExists = IMODELHUBERROR_BASE + 23,\n iModelDoesNotExist = IMODELHUBERROR_BASE + 24,\n FileDoesNotExist = IMODELHUBERROR_BASE + 25,\n FileAlreadyExists = IMODELHUBERROR_BASE + 26,\n LockDoesNotExist = IMODELHUBERROR_BASE + 27,\n LockOwnedByAnotherBriefcase = IMODELHUBERROR_BASE + 28,\n CodeStateInvalid = IMODELHUBERROR_BASE + 29,\n CodeReservedByAnotherBriefcase = IMODELHUBERROR_BASE + 30,\n CodeDoesNotExist = IMODELHUBERROR_BASE + 31,\n EventTypeDoesNotExist = IMODELHUBERROR_BASE + 32,\n EventSubscriptionDoesNotExist = IMODELHUBERROR_BASE + 33,\n EventSubscriptionAlreadyExists = IMODELHUBERROR_BASE + 34,\n ITwinIdIsNotSpecified = IMODELHUBERROR_BASE + 35,\n FailedToGetITwinPermissions = IMODELHUBERROR_BASE + 36,\n FailedToGetITwinMembers = IMODELHUBERROR_BASE + 37,\n ChangeSetAlreadyHasVersion = IMODELHUBERROR_BASE + 38,\n VersionAlreadyExists = IMODELHUBERROR_BASE + 39,\n JobSchedulingFailed = IMODELHUBERROR_BASE + 40,\n ConflictsAggregate = IMODELHUBERROR_BASE + 41,\n FailedToGetITwinById = IMODELHUBERROR_BASE + 42,\n\n DatabaseOperationFailed = IMODELHUBERROR_BASE + 43,\n SeedFileInitializationFailed = IMODELHUBERROR_BASE + 44,\n\n FailedToGetAssetPermissions = IMODELHUBERROR_BASE + 45,\n FailedToGetAssetMembers = IMODELHUBERROR_BASE + 46,\n ITwinDoesNotExist = IMODELHUBERROR_BASE + 47,\n\n LockChunkDoesNotExist = IMODELHUBERROR_BASE + 49,\n\n CheckpointAlreadyExists = IMODELHUBERROR_BASE + 50,\n CheckpointDoesNotExist = IMODELHUBERROR_BASE + 51,\n\n // Errors that are returned for incorrect iModelHub request.\n UndefinedArgumentError = IMODELHUBERROR_REQUESTERRORBASE + 1,\n InvalidArgumentError = IMODELHUBERROR_REQUESTERRORBASE + 2,\n MissingDownloadUrlError = IMODELHUBERROR_REQUESTERRORBASE + 3,\n NotSupportedInBrowser = IMODELHUBERROR_REQUESTERRORBASE + 4,\n FileHandlerNotSet = IMODELHUBERROR_REQUESTERRORBASE + 5,\n FileNotFound = IMODELHUBERROR_REQUESTERRORBASE + 6,\n InitializationTimeout = IMODELHUBERROR_REQUESTERRORBASE + 7,\n}\n\n/** GeoServiceStatus errors\n * @public\n */\nexport enum GeoServiceStatus {\n Success = 0,\n GEOSERVICESTATUS_BASE = 0x24000,\n // Error mapped from 'IModelStatus'\n NoGeoLocation = IModelStatus.NoGeoLocation,\n // Following errors are mapped from 'GeoCoordStatus'\n OutOfUsefulRange = GEOSERVICESTATUS_BASE + 1,\n OutOfMathematicalDomain = GEOSERVICESTATUS_BASE + 2,\n NoDatumConverter = GEOSERVICESTATUS_BASE + 3,\n VerticalDatumConvertError = GEOSERVICESTATUS_BASE + 4,\n CSMapError = GEOSERVICESTATUS_BASE + 5,\n /**\n * @deprecated in 5.0. This status is never returned.\n */\n Pending = GEOSERVICESTATUS_BASE + 6,\n}\n\n/** Error status from various reality data operations\n * @alpha\n */\nexport enum RealityDataStatus {\n Success = 0,\n REALITYDATA_ERROR_BASE = 0x25000,\n InvalidData = REALITYDATA_ERROR_BASE + 1,\n}\n\n/** A function that returns a metadata object for a [[BentleyError]].\n * This is generally used for logging. However not every exception is logged, so use this if the metadata for an exception is expensive to create.\n * @public\n */\nexport type GetMetaDataFunction = () => object | undefined;\n\n/** Optional metadata attached to a [[BentleyError]]. May either be an object or a function that returns an object.\n * If this exception is logged and metadata is present, the metaData object is attached to the log entry via `JSON.stringify`\n * @public\n */\nexport type LoggingMetaData = GetMetaDataFunction | object | undefined;\n\n\ninterface ErrorProps {\n message: string;\n stack?: string;\n metadata?: object;\n}\n\n/**\n * An [[ITwinError]] that also supplies an `errorNumber`.\n * @note this interface exists *only* for legacy errors derived from `BentleyError`. The concept of \"error number\" is\n * problematic since it is impossible to enforce across the iTwin.js library, let alone across applications. New code should\n * use `ITwinError` and identify errors with strings instead.\n * @beta */\nexport interface LegacyITwinErrorWithNumber extends ITwinError {\n /** a number to identify the error. */\n readonly errorNumber: number;\n\n /** Logging metadata\n * @note exceptions should *not* include logging data. Logging should be done where exceptions are caught. This member exists\n * only for backwards compatibility.\n */\n loggingMetadata?: object;\n}\n\n/**\n * Base exception class for legacy iTwin.js errors.\n * For backwards compatibility only. Do not create new subclasses of BentleyError. Instead use [[ITwinError]].\n * @public\n */\nexport class BentleyError extends Error { // note: this class implements LegacyITwinErrorWithNumber but can't be declared as such because that interface is @beta.\n public static readonly iTwinErrorScope = \"bentley-error\";\n private readonly _metaData: LoggingMetaData;\n\n /**\n * @param errorNumber The a number that identifies of the problem.\n * @param message message that describes the problem (should not be localized).\n * @param metaData metaData about the exception.\n */\n public constructor(public errorNumber: number, message?: string, metaData?: LoggingMetaData) {\n super(message);\n this.errorNumber = errorNumber;\n this._metaData = metaData;\n this.name = this._initName();\n }\n\n /** supply the value for iTwinErrorId */\n public get iTwinErrorId() {\n return { scope: BentleyError.iTwinErrorScope, key: this.name };\n }\n /** value for logging metadata */\n public get loggingMetadata() { return this.getMetaData(); }\n\n /**\n * Determine if an error object implements the `LegacyITwinErrorWithNumber` interface.\n *\n * If the test succeeds, the type of `error` is coerced to `T`\n * @note this method does *not* test that the object is an `instanceOf BentleyError`.\n * @beta\n */\n public static isError<T extends LegacyITwinErrorWithNumber>(error: unknown, errorNumber?: number): error is T {\n return ITwinError.isError<LegacyITwinErrorWithNumber>(error, BentleyError.iTwinErrorScope) &&\n typeof error.errorNumber === \"number\" && (errorNumber === undefined || error.errorNumber === errorNumber);\n }\n\n /** Returns true if this BentleyError includes (optional) metadata. */\n public get hasMetaData(): boolean { return undefined !== this._metaData; }\n\n /** get the meta data associated with this BentleyError, if any. */\n public getMetaData(): object | undefined {\n return BentleyError.getMetaData(this._metaData);\n }\n\n /** get the metadata object associated with an ExceptionMetaData, if any. */\n public static getMetaData(metaData: LoggingMetaData): object | undefined {\n return (typeof metaData === \"function\") ? metaData() : metaData;\n }\n\n /** This function returns the name of each error status. Override this method to handle more error status codes. */\n protected _initName(): string {\n return BentleyError.getErrorKey(this.errorNumber);\n }\n\n /** This function returns the name of each error status. */\n public static getErrorKey(errorNumber: number) {\n switch (errorNumber) {\n case IModelStatus.AlreadyLoaded: return \"Already Loaded\";\n case IModelStatus.AlreadyOpen: return \"Already Open\";\n case IModelStatus.BadArg: return \"Bad Arg\";\n case IModelStatus.BadElement: return \"Bad Element\";\n case IModelStatus.BadModel: return \"Bad Model\";\n case IModelStatus.BadRequest: return \"Bad Request\";\n case IModelStatus.BadSchema: return \"Bad Schema\";\n case IModelStatus.CannotUndo: return \"Can not Undo\";\n case IModelStatus.CodeNotReserved: return \"Code Not Reserved\";\n case IModelStatus.DeletionProhibited: return \"Deletion Prohibited\";\n case IModelStatus.DuplicateCode: return \"Duplicate Code\";\n case IModelStatus.DuplicateName: return \"Duplicate Name\";\n case IModelStatus.ElementBlockedChange: return \"Element Blocked Change\";\n case IModelStatus.FileAlreadyExists: return \"File Already Exists\";\n case IModelStatus.FileNotFound: return \"File Not Found\";\n case IModelStatus.FileNotLoaded: return \"File Not Loaded\";\n case IModelStatus.ForeignKeyConstraint: return \"ForeignKey Constraint\";\n case IModelStatus.IdExists: return \"Id Exists\";\n case IModelStatus.InDynamicTransaction: return \"InDynamicTransaction\";\n case IModelStatus.InvalidCategory: return \"Invalid Category\";\n case IModelStatus.InvalidCode: return \"Invalid Code\";\n case IModelStatus.InvalidCodeSpec: return \"Invalid CodeSpec\";\n case IModelStatus.InvalidId: return \"Invalid Id\";\n case IModelStatus.InvalidName: return \"Invalid Name\";\n case IModelStatus.InvalidParent: return \"Invalid Parent\";\n case IModelStatus.InvalidProfileVersion: return \"Invalid Profile Version\";\n case IModelStatus.IsCreatingChangeSet: return \"IsCreatingChangeSet\";\n case IModelStatus.LockNotHeld: return \"Lock Not Held\";\n case IModelStatus.Mismatch2d3d: return \"Mismatch 2d3d\";\n case IModelStatus.MismatchGcs: return \"Mismatch Gcs\";\n case IModelStatus.MissingDomain: return \"Missing Domain\";\n case IModelStatus.MissingHandler: return \"Missing Handler\";\n case IModelStatus.MissingId: return \"Missing Id\";\n case IModelStatus.NoGeometry: return \"No Geometry\";\n case IModelStatus.NoMultiTxnOperation: return \"NoMultiTxnOperation\";\n case IModelStatus.NotEnabled: return \"Not Enabled\";\n case IModelStatus.NotFound: return \"Not Found\";\n case IModelStatus.NotOpen: return \"Not Open\";\n case IModelStatus.NotOpenForWrite: return \"Not Open For Write\";\n case IModelStatus.NotSameUnitBase: return \"Not Same Unit Base\";\n case IModelStatus.NothingToRedo: return \"Nothing To Redo\";\n case IModelStatus.NothingToUndo: return \"Nothing To Undo\";\n case IModelStatus.ParentBlockedChange: return \"Parent Blocked Change\";\n case IModelStatus.ReadError: return \"Read Error\";\n case IModelStatus.ReadOnly: return \"ReadOnly\";\n case IModelStatus.ReadOnlyDomain: return \"ReadOnlyDomain\";\n case IModelStatus.RepositoryManagerError: return \"RepositoryManagerError\";\n case IModelStatus.SQLiteError: return \"SQLiteError\";\n case IModelStatus.TransactionActive: return \"Transaction Active\";\n case IModelStatus.UnitsMissing: return \"Units Missing\";\n case IModelStatus.UnknownFormat: return \"Unknown Format\";\n case IModelStatus.UpgradeFailed: return \"Upgrade Failed\";\n case IModelStatus.ValidationFailed: return \"Validation Failed\";\n case IModelStatus.VersionTooNew: return \"Version Too New\";\n case IModelStatus.VersionTooOld: return \"Version Too Old\";\n case IModelStatus.ViewNotFound: return \"View Not Found\";\n case IModelStatus.WriteError: return \"Write Error\";\n case IModelStatus.WrongClass: return \"Wrong Class\";\n case IModelStatus.WrongIModel: return \"Wrong IModel\";\n case IModelStatus.WrongDomain: return \"Wrong Domain\";\n case IModelStatus.WrongElement: return \"Wrong Element\";\n case IModelStatus.WrongHandler: return \"Wrong Handler\";\n case IModelStatus.WrongModel: return \"Wrong Model\";\n case DbResult.BE_SQLITE_ERROR: return \"BE_SQLITE_ERROR\";\n case DbResult.BE_SQLITE_INTERNAL: return \"BE_SQLITE_INTERNAL\";\n case DbResult.BE_SQLITE_PERM: return \"BE_SQLITE_PERM\";\n case DbResult.BE_SQLITE_ABORT: return \"BE_SQLITE_ABORT\";\n case DbResult.BE_SQLITE_BUSY: return \"Db is busy\";\n case DbResult.BE_SQLITE_LOCKED: return \"Db is Locked\";\n case DbResult.BE_SQLITE_NOMEM: return \"BE_SQLITE_NOMEM\";\n case DbResult.BE_SQLITE_READONLY: return \"Readonly\";\n case DbResult.BE_SQLITE_INTERRUPT: return \"BE_SQLITE_INTERRUPT\";\n case DbResult.BE_SQLITE_IOERR: return \"BE_SQLITE_IOERR\";\n case DbResult.BE_SQLITE_CORRUPT: return \"BE_SQLITE_CORRUPT\";\n case DbResult.BE_SQLITE_NOTFOUND: return \"Not Found\";\n case DbResult.BE_SQLITE_FULL: return \"BE_SQLITE_FULL\";\n case DbResult.BE_SQLITE_CANTOPEN: return \"Can't open\";\n case DbResult.BE_SQLITE_PROTOCOL: return \"BE_SQLITE_PROTOCOL\";\n case DbResult.BE_SQLITE_EMPTY: return \"BE_SQLITE_EMPTY\";\n case DbResult.BE_SQLITE_SCHEMA: return \"BE_SQLITE_SCHEMA\";\n case DbResult.BE_SQLITE_TOOBIG: return \"BE_SQLITE_TOOBIG\";\n case DbResult.BE_SQLITE_MISMATCH: return \"BE_SQLITE_MISMATCH\";\n case DbResult.BE_SQLITE_MISUSE: return \"BE_SQLITE_MISUSE\";\n case DbResult.BE_SQLITE_NOLFS: return \"BE_SQLITE_NOLFS\";\n case DbResult.BE_SQLITE_AUTH: return \"BE_SQLITE_AUTH\";\n case DbResult.BE_SQLITE_FORMAT: return \"BE_SQLITE_FORMAT\";\n case DbResult.BE_SQLITE_RANGE: return \"BE_SQLITE_RANGE\";\n case DbResult.BE_SQLITE_NOTADB: return \"Not a Database\";\n case DbResult.BE_SQLITE_IOERR_READ: return \"BE_SQLITE_IOERR_READ\";\n case DbResult.BE_SQLITE_IOERR_SHORT_READ: return \"BE_SQLITE_IOERR_SHORT_READ\";\n case DbResult.BE_SQLITE_IOERR_WRITE: return \"BE_SQLITE_IOERR_WRITE\";\n case DbResult.BE_SQLITE_IOERR_FSYNC: return \"BE_SQLITE_IOERR_FSYNC\";\n case DbResult.BE_SQLITE_IOERR_DIR_FSYNC: return \"BE_SQLITE_IOERR_DIR_FSYNC\";\n case DbResult.BE_SQLITE_IOERR_TRUNCATE: return \"BE_SQLITE_IOERR_TRUNCATE\";\n case DbResult.BE_SQLITE_IOERR_FSTAT: return \"BE_SQLITE_IOERR_FSTAT\";\n case DbResult.BE_SQLITE_IOERR_UNLOCK: return \"BE_SQLITE_IOERR_UNLOCK\";\n case DbResult.BE_SQLITE_IOERR_RDLOCK: return \"BE_SQLITE_IOERR_RDLOCK\";\n case DbResult.BE_SQLITE_IOERR_DELETE: return \"BE_SQLITE_IOERR_DELETE\";\n case DbResult.BE_SQLITE_IOERR_BLOCKED: return \"BE_SQLITE_IOERR_BLOCKED\";\n case DbResult.BE_SQLITE_IOERR_NOMEM: return \"BE_SQLITE_IOERR_NOMEM\";\n case DbResult.BE_SQLITE_IOERR_ACCESS: return \"BE_SQLITE_IOERR_ACCESS\";\n case DbResult.BE_SQLITE_IOERR_CHECKRESERVEDLOCK: return \"BE_SQLITE_IOERR_CHECKRESERVEDLOCK\";\n case DbResult.BE_SQLITE_IOERR_LOCK: return \"BE_SQLITE_IOERR_LOCK\";\n case DbResult.BE_SQLITE_IOERR_CLOSE: return \"BE_SQLITE_IOERR_CLOSE\";\n case DbResult.BE_SQLITE_IOERR_DIR_CLOSE: return \"BE_SQLITE_IOERR_DIR_CLOSE\";\n case DbResult.BE_SQLITE_IOERR_SHMOPEN: return \"BE_SQLITE_IOERR_SHMOPEN\";\n case DbResult.BE_SQLITE_IOERR_SHMSIZE: return \"BE_SQLITE_IOERR_SHMSIZE\";\n case DbResult.BE_SQLITE_IOERR_SHMLOCK: return \"BE_SQLITE_IOERR_SHMLOCK\";\n case DbResult.BE_SQLITE_IOERR_SHMMAP: return \"BE_SQLITE_IOERR_SHMMAP\";\n case DbResult.BE_SQLITE_IOERR_SEEK: return \"BE_SQLITE_IOERR_SEEK\";\n case DbResult.BE_SQLITE_IOERR_DELETE_NOENT: return \"BE_SQLITE_IOERR_DELETE_NOENT\";\n\n case DbResult.BE_SQLITE_ERROR_DataTransformRequired: return \"Schema update require to transform data\";\n case DbResult.BE_SQLITE_ERROR_FileExists: return \"File Exists\";\n case DbResult.BE_SQLITE_ERROR_AlreadyOpen: return \"Already Open\";\n case DbResult.BE_SQLITE_ERROR_NoPropertyTable: return \"No Property Table\";\n case DbResult.BE_SQLITE_ERROR_FileNotFound: return \"File Not Found\";\n case DbResult.BE_SQLITE_ERROR_NoTxnActive: return \"No Txn Active\";\n case DbResult.BE_SQLITE_ERROR_BadDbProfile: return \"Bad Db Profile\";\n case DbResult.BE_SQLITE_ERROR_InvalidProfileVersion: return \"Invalid Profile Version\";\n case DbResult.BE_SQLITE_ERROR_ProfileUpgradeFailed: return \"Profile Upgrade Failed\";\n case DbResult.BE_SQLITE_ERROR_ProfileTooOldForReadWrite: return \"Profile Too Old For ReadWrite\";\n case DbResult.BE_SQLITE_ERROR_ProfileTooOld: return \"Profile Too Old\";\n case DbResult.BE_SQLITE_ERROR_ProfileTooNewForReadWrite: return \"Profile Too New For ReadWrite\";\n case DbResult.BE_SQLITE_ERROR_ProfileTooNew: return \"Profile Too New\";\n case DbResult.BE_SQLITE_ERROR_ChangeTrackError: return \"ChangeTrack Error\";\n case DbResult.BE_SQLITE_ERROR_InvalidChangeSetVersion: return \"Invalid ChangeSet Version\";\n case DbResult.BE_SQLITE_ERROR_SchemaUpgradeRequired: return \"Schema Upgrade Required\";\n case DbResult.BE_SQLITE_ERROR_SchemaTooNew: return \"Schema Too New\";\n case DbResult.BE_SQLITE_ERROR_SchemaTooOld: return \"Schema Too Old\";\n case DbResult.BE_SQLITE_ERROR_SchemaLockFailed: return \"Schema Lock Failed\";\n case DbResult.BE_SQLITE_ERROR_SchemaUpgradeFailed: return \"Schema Upgrade Failed\";\n case DbResult.BE_SQLITE_ERROR_SchemaImportFailed: return \"Schema Import Failed\";\n case DbResult.BE_SQLITE_ERROR_CouldNotAcquireLocksOrCodes: return \"Could Not Acquire Locks Or Codes\";\n case DbResult.BE_SQLITE_ERROR_SchemaUpgradeRecommended: return \"Recommended that the schemas found in the database be upgraded\";\n case DbResult.BE_SQLITE_LOCKED_SHAREDCACHE: return \"BE_SQLITE_LOCKED_SHAREDCACHE\";\n case DbResult.BE_SQLITE_BUSY_RECOVERY: return \"BE_SQLITE_BUSY_RECOVERY\";\n case DbResult.BE_SQLITE_CANTOPEN_NOTEMPDIR: return \"SQLite No Temp Dir\";\n case DbResult.BE_SQLITE_CANTOPEN_ISDIR: return \"BE_SQLITE_CANTOPEN_ISDIR\";\n case DbResult.BE_SQLITE_CANTOPEN_FULLPATH: return \"BE_SQLITE_CANTOPEN_FULLPATH\";\n case DbResult.BE_SQLITE_CORRUPT_VTAB: return \"BE_SQLITE_CORRUPT_VTAB\";\n case DbResult.BE_SQLITE_READONLY_RECOVERY: return \"BE_SQLITE_READONLY_RECOVERY\";\n case DbResult.BE_SQLITE_READONLY_CANTLOCK: return \"BE_SQLITE_READONLY_CANTLOCK\";\n case DbResult.BE_SQLITE_READONLY_ROLLBACK: return \"BE_SQLITE_READONLY_ROLLBACK\";\n case DbResult.BE_SQLITE_ABORT_ROLLBACK: return \"BE_SQLITE_ABORT_ROLLBACK\";\n case DbResult.BE_SQLITE_CONSTRAINT_CHECK: return \"BE_SQLITE_CONSTRAINT_CHECK\";\n case DbResult.BE_SQLITE_CONSTRAINT_COMMITHOOK: return \"CommitHook Constraint Error\";\n case DbResult.BE_SQLITE_CONSTRAINT_FOREIGNKEY: return \"Foreign Key Constraint Error\";\n case DbResult.BE_SQLITE_CONSTRAINT_FUNCTION: return \"Function Constraint Error\";\n case DbResult.BE_SQLITE_CONSTRAINT_NOTNULL: return \"NotNull Constraint Error\";\n case DbResult.BE_SQLITE_CONSTRAINT_PRIMARYKEY: return \"Primary Key Constraint Error\";\n case DbResult.BE_SQLITE_CONSTRAINT_TRIGGER: return \"Trigger Constraint Error\";\n case DbResult.BE_SQLITE_CONSTRAINT_UNIQUE: return \"Unique Constraint Error\";\n case DbResult.BE_SQLITE_CONSTRAINT_VTAB: return \"VTable Constraint Error\";\n case BentleyStatus.ERROR: return \"Error\";\n case BriefcaseStatus.CannotAcquire: return \"CannotAcquire\";\n case BriefcaseStatus.CannotDownload: return \"CannotDownload\";\n case BriefcaseStatus.CannotCopy: return \"CannotCopy\";\n case BriefcaseStatus.CannotDelete: return \"CannotDelete\";\n case BriefcaseStatus.VersionNotFound: return \"VersionNotFound\";\n case BriefcaseStatus.DownloadCancelled: return \"DownloadCancelled\";\n case BriefcaseStatus.ContainsDeletedChangeSets: return \"ContainsDeletedChangeSets\";\n case RpcInterfaceStatus.IncompatibleVersion: return \"RpcInterfaceStatus.IncompatibleVersion\";\n case ChangeSetStatus.ApplyError: return \"Error applying a change set\";\n case ChangeSetStatus.ChangeTrackingNotEnabled: return \"Change tracking has not been enabled. The ChangeSet API mandates this\";\n case ChangeSetStatus.CorruptedChangeStream: return \"Contents of the change stream are corrupted and does not match the ChangeSet\";\n case ChangeSetStatus.FileNotFound: return \"File containing the changes was not found\";\n case ChangeSetStatus.FileWriteError: return \"Error writing the contents of the change set to the backing change stream file\";\n case ChangeSetStatus.HasLocalChanges: return \"Cannot perform the operation since the Db has local changes\";\n case ChangeSetStatus.HasUncommittedChanges: return \"Cannot perform the operation since current transaction has uncommitted changes\";\n case ChangeSetStatus.InvalidId: return \"Invalid ChangeSet Id\";\n case ChangeSetStatus.InvalidVersion: return \"Invalid version of the change set\";\n case ChangeSetStatus.InDynamicTransaction: return \"Cannot perform the operation since system is in the middle of a dynamic transaction\";\n case ChangeSetStatus.IsCreatingChangeSet: return \"Cannot perform operation since system is in the middle of a creating a change set\";\n case ChangeSetStatus.IsNotCreatingChangeSet: return \"Cannot perform operation since the system is not creating a change set\";\n case ChangeSetStatus.MergePropagationError: return \"Error propagating the changes after the merge\";\n case ChangeSetStatus.NothingToMerge: return \"No change sets to merge\";\n case ChangeSetStatus.NoTransactions: return \"No transactions are available to create a change set\";\n case ChangeSetStatus.ParentMismatch: return \"Parent change set of the Db does not match the parent id of the change set\";\n case ChangeSetStatus.SQLiteError: return \"Error performing a SQLite operation on the Db\";\n case ChangeSetStatus.WrongDgnDb: return \"ChangeSet originated in a different Db\";\n case ChangeSetStatus.CouldNotOpenDgnDb: return \"Could not open the DgnDb to merge change set\";\n case ChangeSetStatus.MergeSchemaChangesOnOpen: return \"Cannot merge changes in in an open DgnDb. Close the DgnDb, and process the operation when it is opened\";\n case ChangeSetStatus.ReverseOrReinstateSchemaChanges: return \"Cannot reverse or reinstate schema changes.\";\n case ChangeSetStatus.ProcessSchemaChangesOnOpen: return \"Cannot process changes schema changes in an open DgnDb. Close the DgnDb, and process the operation when it is opened\";\n case ChangeSetStatus.CannotMergeIntoReadonly: return \"Cannot merge changes into a Readonly DgnDb\";\n case ChangeSetStatus.CannotMergeIntoMaster: return \"Cannot merge changes into a Master DgnDb\";\n case ChangeSetStatus.CannotMergeIntoReversed: return \"Cannot merge changes into a DgnDb that has reversed change sets\";\n case ChangeSetStatus.DownloadCancelled: return \"ChangeSet(s) download was cancelled.\";\n case RepositoryStatus.ServerUnavailable: return \"ServerUnavailable\";\n case RepositoryStatus.LockAlreadyHeld: return \"LockAlreadyHeld\";\n case RepositoryStatus.SyncError: return \"SyncError\";\n case RepositoryStatus.InvalidResponse: return \"InvalidResponse\";\n case RepositoryStatus.PendingTransactions: return \"PendingTransactions\";\n case RepositoryStatus.LockUsed: return \"LockUsed\";\n case RepositoryStatus.CannotCreateChangeSet: return \"CannotCreateChangeSet\";\n case RepositoryStatus.InvalidRequest: return \"InvalidRequest\";\n case RepositoryStatus.ChangeSetRequired: return \"ChangeSetRequired\";\n case RepositoryStatus.CodeUnavailable: return \"CodeUnavailable\";\n case RepositoryStatus.CodeNotReserved: return \"CodeNotReserved\";\n case RepositoryStatus.CodeUsed: return \"CodeUsed\";\n case RepositoryStatus.LockNotHeld: return \"LockNotHeld\";\n case RepositoryStatus.RepositoryIsLocked: return \"RepositoryIsLocked\";\n case RepositoryStatus.ChannelConstraintViolation: return \"ChannelConstraintViolation\";\n case HttpStatus.Info: return \"HTTP Info\";\n case HttpStatus.Redirection: return \"HTTP Redirection\";\n case HttpStatus.ClientError: return \"HTTP Client error\";\n case HttpStatus.ServerError: return \"HTTP Server error\";\n case IModelHubStatus.Unknown: return \"Unknown error\";\n case IModelHubStatus.MissingRequiredProperties: return \"Missing required properties\";\n case IModelHubStatus.InvalidPropertiesValues: return \"Invalid properties values\";\n case IModelHubStatus.UserDoesNotHavePermission: return \"User does not have permission\";\n case IModelHubStatus.UserDoesNotHaveAccess: return \"User does not have access\";\n case IModelHubStatus.InvalidBriefcase: return \"Invalid briefcase\";\n case IModelHubStatus.BriefcaseDoesNotExist: return \"Briefcase does not exist\";\n case IModelHubStatus.BriefcaseDoesNotBelongToUser: return \"Briefcase does not belong to user\";\n case IModelHubStatus.AnotherUserPushing: return \"Another user pushing\";\n case IModelHubStatus.ChangeSetAlreadyExists: return \"ChangeSet already exists\";\n case IModelHubStatus.ChangeSetDoesNotExist: return \"ChangeSet does not exist\";\n case IModelHubStatus.FileIsNotUploaded: return \"File is not uploaded\";\n case IModelHubStatus.iModelIsNotInitialized: return \"iModel is not initialized\";\n case IModelHubStatus.ChangeSetPointsToBadSeed: return \"ChangeSet points to a bad seed file\";\n case IModelHubStatus.OperationFailed: return \"iModelHub operation has failed\";\n case IModelHubStatus.PullIsRequired: return \"Pull is required\";\n case IModelHubStatus.MaximumNumberOfBriefcasesPerUser: return \"Limit of briefcases per user was reached\";\n case IModelHubStatus.MaximumNumberOfBriefcasesPerUserPerMinute: return \"Limit of briefcases per user per minute was reached\";\n case IModelHubStatus.DatabaseTemporarilyLocked: return \"Database is temporarily locked\";\n case IModelHubStatus.iModelIsLocked: return \"iModel is locked\";\n case IModelHubStatus.CodesExist: return \"Code already exists\";\n case IModelHubStatus.LocksExist: return \"Lock already exists\";\n case IModelHubStatus.iModelAlreadyExists: return \"iModel already exists\";\n case IModelHubStatus.iModelDoesNotExist: return \"iModel does not exist\";\n case IModelHubStatus.LockDoesNotExist: return \"Lock does not exist\";\n case IModelHubStatus.LockChunkDoesNotExist: return \"Lock chunk does not exist\";\n case IModelHubStatus.LockOwnedByAnotherBriefcase: return \"Lock is owned by another briefcase\";\n case IModelHubStatus.CodeStateInvalid: return \"Code state is invalid\";\n case IModelHubStatus.CodeReservedByAnotherBriefcase: return \"Code is reserved by another briefcase\";\n case IModelHubStatus.CodeDoesNotExist: return \"Code does not exist\";\n case IModelHubStatus.FileDoesNotExist: return \"File does not exist\";\n case IModelHubStatus.FileAlreadyExists: return \"File already exists\";\n case IModelHubStatus.EventTypeDoesNotExist: return \"Event type does not exist\";\n case IModelHubStatus.EventSubscriptionDoesNotExist: return \"Event subscription does not exist\";\n case IModelHubStatus.EventSubscriptionAlreadyExists: return \"Event subscription already exists\";\n case IModelHubStatus.ITwinIdIsNotSpecified: return \"ITwin Id is not specified\";\n case IModelHubStatus.FailedToGetITwinPermissions: return \"Failed to get iTwin permissions\";\n case IModelHubStatus.FailedToGetITwinMembers: return \"Failed to get iTwin members\";\n case IModelHubStatus.FailedToGetAssetPermissions: return \"Failed to get asset permissions\";\n case IModelHubStatus.FailedToGetAssetMembers: return \"Failed to get asset members\";\n case IModelHubStatus.ChangeSetAlreadyHasVersion: return \"ChangeSet already has version\";\n case IModelHubStatus.VersionAlreadyExists: return \"Version already exists\";\n case IModelHubStatus.JobSchedulingFailed: return \"Failed to schedule a background job\";\n case IModelHubStatus.ConflictsAggregate: return \"Codes or locks are owned by another briefcase\";\n case IModelHubStatus.FailedToGetITwinById: return \"Failed to query iTwin by its id\";\n case IModelHubStatus.DatabaseOperationFailed: return \"Database operation has failed\";\n case IModelHubStatus.ITwinDoesNotExist: return \"ITwin does not exist\";\n case IModelHubStatus.UndefinedArgumentError: return \"Undefined argument\";\n case IModelHubStatus.InvalidArgumentError: return \"Invalid argument\";\n case IModelHubStatus.MissingDownloadUrlError: return \"Missing download url\";\n case IModelHubStatus.NotSupportedInBrowser: return \"Not supported in browser\";\n case IModelHubStatus.FileHandlerNotSet: return \"File handler is not set\";\n case IModelHubStatus.FileNotFound: return \"File not found\";\n case GeoServiceStatus.NoGeoLocation: return \"No GeoLocation\";\n case GeoServiceStatus.OutOfUsefulRange: return \"Out of useful range\";\n case GeoServiceStatus.OutOfMathematicalDomain: return \"Out of mathematical domain\";\n case GeoServiceStatus.NoDatumConverter: return \"No datum converter\";\n case GeoServiceStatus.VerticalDatumConvertError: return \"Vertical datum convert error\";\n case GeoServiceStatus.CSMapError: return \"CSMap error\";\n case GeoServiceStatus.Pending: return \"Pending\"; // eslint-disable-line @typescript-eslint/no-deprecated\n case RealityDataStatus.InvalidData: return \"Invalid or unknown data\";\n case DbResult.BE_SQLITE_OK:\n case DbResult.BE_SQLITE_ROW:\n case DbResult.BE_SQLITE_DONE:\n case BentleyStatus.SUCCESS:\n return \"Success\";\n\n default:\n return `Error (${errorNumber})`;\n }\n }\n\n /** Use run-time type checking to safely get a useful string summary of an unknown error value, or `\"\"` if none exists.\n * @note It's recommended to use this function in `catch` clauses, where a caught value cannot be assumed to be `instanceof Error`\n * @public\n */\n public static getErrorMessage(error: unknown): string {\n if (typeof error === \"string\")\n return error;\n\n if (error instanceof Error)\n return error.toString();\n\n if (JsonUtils.isObject(error)) {\n if (typeof error.message === \"string\")\n return error.message;\n\n if (typeof error.msg === \"string\")\n return error.msg;\n\n // eslint-disable-next-line @typescript-eslint/no-base-to-string\n if (error.toString() !== \"[object Object]\")\n return error.toString(); // eslint-disable-line @typescript-eslint/no-base-to-string\n }\n\n return \"\";\n }\n\n /** Use run-time type checking to safely get the call stack of an unknown error value, if possible.\n * @note It's recommended to use this function in `catch` clauses, where a caught value cannot be assumed to be `instanceof Error`\n * @public\n */\n public static getErrorStack(error: unknown): string | undefined {\n if (JsonUtils.isObject(error) && typeof error.stack === \"string\")\n return error.stack;\n\n return undefined;\n }\n\n /** Use run-time type checking to safely get the metadata with an unknown error value, if possible.\n * @note It's recommended to use this function in `catch` clauses, where a caught value cannot be assumed to be `instanceof BentleyError`\n * @see [[BentleyError.getMetaData]]\n * @public\n */\n public static getErrorMetadata(error: unknown): object | undefined {\n if (JsonUtils.isObject(error) && typeof error.getMetaData === \"function\") {\n const metadata = error.getMetaData();\n if (typeof metadata === \"object\" && metadata !== null)\n return metadata;\n }\n\n return undefined;\n }\n\n /** Returns a new `ErrorProps` object representing an unknown error value. Useful for logging or wrapping/re-throwing caught errors.\n * @note Unlike `Error` objects (which lose messages and call stacks when serialized to JSON), objects\n * returned by this are plain old JavaScript objects, and can be easily logged/serialized to JSON.\n * @public\n */\n public static getErrorProps(error: unknown): ErrorProps {\n const serialized: ErrorProps = {\n message: BentleyError.getErrorMessage(error),\n };\n\n const stack = BentleyError.getErrorStack(error);\n if (stack)\n serialized.stack = stack;\n\n const metadata = BentleyError.getErrorMetadata(error);\n if (metadata)\n serialized.metadata = metadata;\n\n return serialized;\n }\n}\n\n"]}
@@ -55,6 +55,10 @@ export declare namespace JsonUtils {
55
55
  * @param defaultVal the default value.
56
56
  */
57
57
  function setOrRemoveBoolean(json: any, key: string, val: boolean, defaultVal: boolean): void;
58
+ /** Returns `true` if `json` is a non-null object. */
59
+ function isObject(json: unknown): json is {
60
+ [key: string]: unknown;
61
+ };
58
62
  /** Determine if a Javascript object is equivalent to `{}`.
59
63
  * @param json The JSON object to test.
60
64
  * @returns true if `json` is an Object with no keys.
@@ -1 +1 @@
1
- {"version":3,"file":"JsonUtils.d.ts","sourceRoot":"","sources":["../../src/JsonUtils.ts"],"names":[],"mappings":"AAIA;;GAEG;AAEH;;GAEG;AACH,yBAAiB,SAAS,CAAC;IACzB;;;;OAIG;IACH,SAAgB,MAAM,CAAC,IAAI,EAAE,GAAG,EAAE,UAAU,UAAQ,GAAG,OAAO,CAE7D;IACD;;;;OAIG;IACH,SAAgB,KAAK,CAA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