@itwin/core-bentley 4.0.0-dev.4 → 4.0.0-dev.41

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.
Files changed (48) hide show
  1. package/CHANGELOG.md +29 -12
  2. package/lib/cjs/Assert.js +1 -1
  3. package/lib/cjs/Assert.js.map +1 -1
  4. package/lib/cjs/BeSQLite.d.ts +2 -0
  5. package/lib/cjs/BeSQLite.d.ts.map +1 -1
  6. package/lib/cjs/BeSQLite.js +2 -0
  7. package/lib/cjs/BeSQLite.js.map +1 -1
  8. package/lib/cjs/BentleyError.d.ts.map +1 -1
  9. package/lib/cjs/BentleyError.js +1 -0
  10. package/lib/cjs/BentleyError.js.map +1 -1
  11. package/lib/cjs/CompressedId64Set.js +4 -4
  12. package/lib/cjs/CompressedId64Set.js.map +1 -1
  13. package/lib/cjs/Logger.js +2 -4
  14. package/lib/cjs/Logger.js.map +1 -1
  15. package/lib/cjs/OneAtATimeAction.js +1 -1
  16. package/lib/cjs/OneAtATimeAction.js.map +1 -1
  17. package/lib/cjs/SortedArray.d.ts +4 -0
  18. package/lib/cjs/SortedArray.d.ts.map +1 -1
  19. package/lib/cjs/SortedArray.js +12 -0
  20. package/lib/cjs/SortedArray.js.map +1 -1
  21. package/lib/cjs/Tracing.js +4 -7
  22. package/lib/cjs/Tracing.js.map +1 -1
  23. package/lib/cjs/TypedArrayBuilder.js +3 -5
  24. package/lib/cjs/TypedArrayBuilder.js.map +1 -1
  25. package/lib/esm/Assert.js +1 -1
  26. package/lib/esm/Assert.js.map +1 -1
  27. package/lib/esm/BeSQLite.d.ts +2 -0
  28. package/lib/esm/BeSQLite.d.ts.map +1 -1
  29. package/lib/esm/BeSQLite.js +2 -0
  30. package/lib/esm/BeSQLite.js.map +1 -1
  31. package/lib/esm/BentleyError.d.ts.map +1 -1
  32. package/lib/esm/BentleyError.js +1 -0
  33. package/lib/esm/BentleyError.js.map +1 -1
  34. package/lib/esm/CompressedId64Set.js +4 -4
  35. package/lib/esm/CompressedId64Set.js.map +1 -1
  36. package/lib/esm/Logger.js +2 -4
  37. package/lib/esm/Logger.js.map +1 -1
  38. package/lib/esm/OneAtATimeAction.js +1 -1
  39. package/lib/esm/OneAtATimeAction.js.map +1 -1
  40. package/lib/esm/SortedArray.d.ts +4 -0
  41. package/lib/esm/SortedArray.d.ts.map +1 -1
  42. package/lib/esm/SortedArray.js +12 -0
  43. package/lib/esm/SortedArray.js.map +1 -1
  44. package/lib/esm/Tracing.js +4 -7
  45. package/lib/esm/Tracing.js.map +1 -1
  46. package/lib/esm/TypedArrayBuilder.js +3 -5
  47. package/lib/esm/TypedArrayBuilder.js.map +1 -1
  48. package/package.json +4 -4
package/CHANGELOG.md CHANGED
@@ -1,6 +1,23 @@
1
1
  # Change Log - @itwin/core-bentley
2
2
 
3
- This log was last generated on Thu, 26 Jan 2023 22:53:27 GMT and should not be manually modified.
3
+ This log was last generated on Wed, 08 Feb 2023 14:58:39 GMT and should not be manually modified.
4
+
5
+ ## 3.6.0
6
+ Wed, 08 Feb 2023 14:58:39 GMT
7
+
8
+ ### Updates
9
+
10
+ - Added DataTransformRequired flag to DbResult enum.
11
+ - Promote AccessToken to public; and remove beta ExtractLiterals and alpha AsyncMutex.
12
+ - Added TransientIdSequence.peekNext to preview the next Id in the sequence.
13
+ - Deprecate TransientIdSequence.next property in favor of getNext method.
14
+
15
+ ## 3.5.6
16
+ Fri, 24 Feb 2023 16:02:47 GMT
17
+
18
+ ### Updates
19
+
20
+ - Add SortedArray.slice.
4
21
 
5
22
  ## 3.5.5
6
23
  Thu, 26 Jan 2023 22:53:27 GMT
@@ -864,7 +881,7 @@ Thu, 28 May 2020 22:48:59 GMT
864
881
  ### Updates
865
882
 
866
883
  - Added FailedToGetProductSettings error
867
- - Setup Guid.normalize() for internal use.
884
+ - Setup Guid.normalize() for internal use.
868
885
  - channel rules
869
886
 
870
887
  ## 2.0.0
@@ -872,12 +889,12 @@ Wed, 06 May 2020 13:17:49 GMT
872
889
 
873
890
  ### Updates
874
891
 
875
- - Monitor progress of downloading briefcases, ability to cancel download of briefcases.
892
+ - Monitor progress of downloading briefcases, ability to cancel download of briefcases.
876
893
  - Update Config.App documentation to reflect the removal of the config.json file
877
894
  - Added ContextDoesNotExist error
878
895
  - BUG273249
879
- - Updated docs.
880
- - Updated error text.
896
+ - Updated docs.
897
+ - Updated error text.
881
898
  - added raw log method that bypass catogory check
882
899
  - order imports.
883
900
  - Add a type guard for `IDisposable`
@@ -911,7 +928,7 @@ Wed, 22 Jan 2020 19:24:11 GMT
911
928
 
912
929
  ### Updates
913
930
 
914
- - VSS$257397: Temporary fix for checking electron renderer.
931
+ - VSS$257397: Temporary fix for checking electron renderer.
915
932
  - Upgrade to TypeScript 3.7.2.
916
933
 
917
934
  ## 1.10.0
@@ -926,7 +943,7 @@ Tue, 10 Dec 2019 18:08:56 GMT
926
943
 
927
944
  ### Updates
928
945
 
929
- - Setup OidcDesktopClient for Electron use cases.
946
+ - Setup OidcDesktopClient for Electron use cases.
930
947
  - Added non-static wait and executeAfter to BeDuration
931
948
  - Fix warnings from static analysis
932
949
  - Added `BeDuration.race` for common timeout operations.
@@ -979,7 +996,7 @@ Mon, 01 Jul 2019 19:04:29 GMT
979
996
  ### Updates
980
997
 
981
998
  - Added OneAtATimeActivity class
982
- - Introduced AsyncMutex - a utility to run async blocks of code in sequence.
999
+ - Introduced AsyncMutex - a utility to run async blocks of code in sequence.
983
1000
  - Update to TypeScript 3.5
984
1001
 
985
1002
  ## 1.0.0
@@ -1006,10 +1023,10 @@ Mon, 13 May 2019 15:52:05 GMT
1006
1023
  - Logged the fields in ClientRequestContext
1007
1024
  - Logging fixes.
1008
1025
  - Put sourcemap in npm package.
1009
- - Fixed logger to not mutate incoming objects.
1026
+ - Fixed logger to not mutate incoming objects.
1010
1027
  - Improved performance logging
1011
1028
  - Added functions for iterating and obtaining the number of elements of a collection of Id64s represented as an Id64Arg.
1012
- - Setup a generic context for tracking client requests, and made various related enhancements to logging, usage tracking and authorization.
1029
+ - Setup a generic context for tracking client requests, and made various related enhancements to logging, usage tracking and authorization.
1013
1030
  - Use TextDecoder to decode binary utf-8 strings if supported.
1014
1031
  - Upgrade TypeDoc dependency to 0.14.2
1015
1032
 
@@ -1045,7 +1062,7 @@ Mon, 14 Jan 2019 23:09:10 GMT
1045
1062
 
1046
1063
  ### Updates
1047
1064
 
1048
- - Removed IModelDb's cache of accessToken. For long running operations like AutoPush, the user must explicitly supply an IAccessTokenManager to keep the token current.
1065
+ - Removed IModelDb's cache of accessToken. For long running operations like AutoPush, the user must explicitly supply an IAccessTokenManager to keep the token current.
1049
1066
 
1050
1067
  ## 0.185.0
1051
1068
  Fri, 11 Jan 2019 18:29:00 GMT
@@ -1152,7 +1169,7 @@ Fri, 16 Nov 2018 21:45:44 GMT
1152
1169
 
1153
1170
  ### Updates
1154
1171
 
1155
- - Changes to debug utilities.
1172
+ - Changes to debug utilities.
1156
1173
  - Fluentd Bunnyan Logger added
1157
1174
 
1158
1175
  ## 0.166.0
package/lib/cjs/Assert.js CHANGED
@@ -37,7 +37,7 @@ function assert(condition, message) {
37
37
  condition = condition();
38
38
  if (condition)
39
39
  return;
40
- message = message !== null && message !== void 0 ? message : "Programmer Error";
40
+ message = message ?? "Programmer Error";
41
41
  if ("string" !== typeof message)
42
42
  message = message();
43
43
  throw new Error(`Assert: ${message}`);
@@ -1 +1 @@
1
- {"version":3,"file":"Assert.js","sourceRoot":"","sources":["../../src/Assert.ts"],"names":[],"mappings":";AAAA;;;+FAG+F;AAC/F;;GAEG;;;AAEH,MAAM,iBAAiB,GAAG,OAAO,CAAC,GAAG,CAAC,QAAQ,KAAK,aAAa,CAAC;AAEjE;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,SAAgB,MAAM,CAAC,SAAoC,EAAE,OAAiC;IAC5F,IAAI,CAAC,iBAAiB;QACpB,OAAO;IAET,IAAI,SAAS,KAAK,OAAO,SAAS;QAChC,SAAS,GAAG,SAAS,EAAE,CAAC;IAE1B,IAAI,SAAS;QACX,OAAO;IAET,OAAO,GAAG,OAAO,aAAP,OAAO,cAAP,OAAO,GAAI,kBAAkB,CAAC;IACxC,IAAI,QAAQ,KAAK,OAAO,OAAO;QAC7B,OAAO,GAAG,OAAO,EAAE,CAAC;IAEtB,MAAM,IAAI,KAAK,CAAC,WAAW,OAAO,EAAE,CAAC,CAAC;AACxC,CAAC;AAfD,wBAeC","sourcesContent":["/*---------------------------------------------------------------------------------------------\r\n* Copyright (c) Bentley Systems, Incorporated. All rights reserved.\r\n* See LICENSE.md in the project root for license terms and full copyright notice.\r\n*--------------------------------------------------------------------------------------------*/\r\n/** @packageDocumentation\r\n * @module Utils\r\n */\r\n\r\nconst assertionsEnabled = process.env.NODE_ENV === \"development\";\r\n\r\n/** Asserts that a condition is `true` and - when enabled - throws an error if it is not.\r\n * Assertions are enabled only if the build configuration defines `process.env.NODE_ENV` as `development` at build time.\r\n *\r\n * Assertions exist solely to assist programmers during development, in the following ways:\r\n * 1 They allow the programmer to declare conditions that they believe cannot possibly occur. If such conditions occur, they indicate\r\n * a serious flaw in the programmer's logic.\r\n * 2 They allow the programmer to assure the TypeScript compiler of the truth of some condition that the compiler cannot itself infer.\r\n * 3 They allow the author of an API to indicate to consumers of the API a serious misuse that should be corrected during development.\r\n *\r\n * Assertions should **never** be used to test for conditions - however unlikely - that could be expected to occur at run-time,\r\n * such as failing to write to a file or load a resource over the network. If the condition asserted ever fails in a production environment,\r\n * the programmer has made a serious mistake.\r\n *\r\n * Note that even when assertions are disabled, calls to `assert` remain in the code and their arguments will be evaluated at run-time.\r\n * Therefore, if your condition or message requires computation, prefer to pass it as a function to prevent it from being evaluated when assertions are disabled.\r\n *\r\n * @param condition The condition that is asserted to be `true`. If the condition is more complex than a simple `boolean` variable, pass it as a function to prevent it from being evaluated when assertions are disabled.\r\n * @param message An optional description of the condition being asserted, to be included in the exception if `condition` is `false`. If the message must be computed, pass it as a function to prevent it from being evaluated when assertions are disabled. Defaults to \"Programmer Error\".\r\n * @throws Error containing the specified `message` if `condition` is `false`.\r\n * @public\r\n */\r\nexport function assert(condition: boolean | (() => boolean), message?: string | (() => string)): asserts condition {\r\n if (!assertionsEnabled)\r\n return;\r\n\r\n if (\"boolean\" !== typeof condition)\r\n condition = condition();\r\n\r\n if (condition)\r\n return;\r\n\r\n message = message ?? \"Programmer Error\";\r\n if (\"string\" !== typeof message)\r\n message = message();\r\n\r\n throw new Error(`Assert: ${message}`);\r\n}\r\n"]}
1
+ {"version":3,"file":"Assert.js","sourceRoot":"","sources":["../../src/Assert.ts"],"names":[],"mappings":";AAAA;;;+FAG+F;AAC/F;;GAEG;;;AAEH,MAAM,iBAAiB,GAAG,OAAO,CAAC,GAAG,CAAC,QAAQ,KAAK,aAAa,CAAC;AAEjE;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,SAAgB,MAAM,CAAC,SAAoC,EAAE,OAAiC;IAC5F,IAAI,CAAC,iBAAiB;QACpB,OAAO;IAET,IAAI,SAAS,KAAK,OAAO,SAAS;QAChC,SAAS,GAAG,SAAS,EAAE,CAAC;IAE1B,IAAI,SAAS;QACX,OAAO;IAET,OAAO,GAAG,OAAO,IAAI,kBAAkB,CAAC;IACxC,IAAI,QAAQ,KAAK,OAAO,OAAO;QAC7B,OAAO,GAAG,OAAO,EAAE,CAAC;IAEtB,MAAM,IAAI,KAAK,CAAC,WAAW,OAAO,EAAE,CAAC,CAAC;AACxC,CAAC;AAfD,wBAeC","sourcesContent":["/*---------------------------------------------------------------------------------------------\r\n* Copyright (c) Bentley Systems, Incorporated. All rights reserved.\r\n* See LICENSE.md in the project root for license terms and full copyright notice.\r\n*--------------------------------------------------------------------------------------------*/\r\n/** @packageDocumentation\r\n * @module Utils\r\n */\r\n\r\nconst assertionsEnabled = process.env.NODE_ENV === \"development\";\r\n\r\n/** Asserts that a condition is `true` and - when enabled - throws an error if it is not.\r\n * Assertions are enabled only if the build configuration defines `process.env.NODE_ENV` as `development` at build time.\r\n *\r\n * Assertions exist solely to assist programmers during development, in the following ways:\r\n * 1 They allow the programmer to declare conditions that they believe cannot possibly occur. If such conditions occur, they indicate\r\n * a serious flaw in the programmer's logic.\r\n * 2 They allow the programmer to assure the TypeScript compiler of the truth of some condition that the compiler cannot itself infer.\r\n * 3 They allow the author of an API to indicate to consumers of the API a serious misuse that should be corrected during development.\r\n *\r\n * Assertions should **never** be used to test for conditions - however unlikely - that could be expected to occur at run-time,\r\n * such as failing to write to a file or load a resource over the network. If the condition asserted ever fails in a production environment,\r\n * the programmer has made a serious mistake.\r\n *\r\n * Note that even when assertions are disabled, calls to `assert` remain in the code and their arguments will be evaluated at run-time.\r\n * Therefore, if your condition or message requires computation, prefer to pass it as a function to prevent it from being evaluated when assertions are disabled.\r\n *\r\n * @param condition The condition that is asserted to be `true`. If the condition is more complex than a simple `boolean` variable, pass it as a function to prevent it from being evaluated when assertions are disabled.\r\n * @param message An optional description of the condition being asserted, to be included in the exception if `condition` is `false`. If the message must be computed, pass it as a function to prevent it from being evaluated when assertions are disabled. Defaults to \"Programmer Error\".\r\n * @throws Error containing the specified `message` if `condition` is `false`.\r\n * @public\r\n */\r\nexport function assert(condition: boolean | (() => boolean), message?: string | (() => string)): asserts condition {\r\n if (!assertionsEnabled)\r\n return;\r\n\r\n if (\"boolean\" !== typeof condition)\r\n condition = condition();\r\n\r\n if (condition)\r\n return;\r\n\r\n message = message ?? \"Programmer Error\";\r\n if (\"string\" !== typeof message)\r\n message = message();\r\n\r\n throw new Error(`Assert: ${message}`);\r\n}\r\n"]}
@@ -148,6 +148,8 @@ export declare enum DbResult {
148
148
  BE_SQLITE_ERROR_CouldNotAcquireLocksOrCodes = 352321546,
149
149
  /** Recommended that the schemas found in the database be upgraded */
150
150
  BE_SQLITE_ERROR_SchemaUpgradeRecommended = 369098762,
151
+ /** schema update require data transform */
152
+ BE_SQLITE_ERROR_DataTransformRequired = 385875978,
151
153
  BE_SQLITE_LOCKED_SHAREDCACHE = 262,
152
154
  BE_SQLITE_BUSY_RECOVERY = 261,
153
155
  BE_SQLITE_CANTOPEN_NOTEMPDIR = 270,
@@ -1 +1 @@
1
- {"version":3,"file":"BeSQLite.d.ts","sourceRoot":"","sources":["../../src/BeSQLite.ts"],"names":[],"mappings":"AAIA;;GAEG;AAEH;;GAEG;AACH,oBAAY,QAAQ;IAClB,QAAQ,IAAa;IACrB,SAAS,IAAa;CACvB;AAED;;GAEG;AACH,oBAAY,QAAQ;IAClB,yBAAyB;IACzB,MAAM,IAAI;IACV,8BAA8B;IAC9B,MAAM,KAAK;IACX,oDAAoD;IACpD,MAAM,KAAK;CACZ;AAED;;GAEG;AAGH,oBAAY,QAAQ;IAClB,cAAc;IACd,YAAY,IAAI;IAChB,oCAAoC;IACpC,eAAe,IAAI;IACnB,2BAA2B;IAC3B,kBAAkB,IAAI;IACtB,+BAA+B;IAC/B,cAAc,IAAI;IAClB,0CAA0C;IAC1C,eAAe,IAAI;IACnB,kCAAkC;IAClC,cAAc,IAAI;IAClB,wCAAwC;IACxC,gBAAgB,IAAI;IACpB,wBAAwB;IACxB,eAAe,IAAI;IACnB,2CAA2C;IAC3C,kBAAkB,IAAI;IACtB,wCAAwC;IACxC,mBAAmB,IAAI;IACvB,2CAA2C;IAC3C,eAAe,KAAK;IACpB,2CAA2C;IAC3C,iBAAiB,KAAK;IACtB,0CAA0C;IAC1C,kBAAkB,KAAK;IACvB,+FAA+F;IAC/F,cAAc,KAAK;IACnB,uCAAuC;IACvC,kBAAkB,KAAK;IACvB,mCAAmC;IACnC,kBAAkB,KAAK;IACvB,wBAAwB;IACxB,eAAe,KAAK;IACpB,kCAAkC;IAClC,gBAAgB,KAAK;IACrB,wCAAwC;IACxC,gBAAgB,KAAK;IACrB,oEAAoE;IACpE,yBAAyB,KAAK;IAC9B,yBAAyB;IACzB,kBAAkB,KAAK;IACvB,+BAA+B;IAC/B,gBAAgB,KAAK;IACrB,6CAA6C;IAC7C,eAAe,KAAK;IACpB,2BAA2B;IAC3B,cAAc,KAAK;IACnB,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E,+BAA+B,OAAyC;IACxE,4BAA4B,OAAyC;IACrE,2BAA2B,OAAyC;IACpE,yBAAyB,OAAyC;CACnE"}
@@ -160,6 +160,8 @@ var DbResult;
160
160
  DbResult[DbResult["BE_SQLITE_ERROR_CouldNotAcquireLocksOrCodes"] = 352321546] = "BE_SQLITE_ERROR_CouldNotAcquireLocksOrCodes";
161
161
  /** Recommended that the schemas found in the database be upgraded */
162
162
  DbResult[DbResult["BE_SQLITE_ERROR_SchemaUpgradeRecommended"] = 369098762] = "BE_SQLITE_ERROR_SchemaUpgradeRecommended";
163
+ /** schema update require data transform */
164
+ DbResult[DbResult["BE_SQLITE_ERROR_DataTransformRequired"] = 385875978] = "BE_SQLITE_ERROR_DataTransformRequired";
163
165
  DbResult[DbResult["BE_SQLITE_LOCKED_SHAREDCACHE"] = 262] = "BE_SQLITE_LOCKED_SHAREDCACHE";
164
166
  DbResult[DbResult["BE_SQLITE_BUSY_RECOVERY"] = 261] = "BE_SQLITE_BUSY_RECOVERY";
165
167
  DbResult[DbResult["BE_SQLITE_CANTOPEN_NOTEMPDIR"] = 270] = "BE_SQLITE_CANTOPEN_NOTEMPDIR";
@@ -1 +1 @@
1
- {"version":3,"file":"BeSQLite.js","sourceRoot":"","sources":["../../src/BeSQLite.ts"],"names":[],"mappings":";AAAA;;;+FAG+F;AAC/F;;GAEG;;;AAEH;;GAEG;AACH,IAAY,QAGX;AAHD,WAAY,QAAQ;IAClB,+CAAqB,CAAA;IACrB,iDAAsB,CAAA;AACxB,CAAC,EAHW,QAAQ,GAAR,gBAAQ,KAAR,gBAAQ,QAGnB;AAED;;GAEG;AACH,IAAY,QAOX;AAPD,WAAY,QAAQ;IAClB,yBAAyB;IACzB,2CAAU,CAAA;IACV,8BAA8B;IAC9B,4CAAW,CAAA;IACX,oDAAoD;IACpD,4CAAW,CAAA;AACb,CAAC,EAPW,QAAQ,GAAR,gBAAQ,KAAR,gBAAQ,QAOnB;AAED;;GAEG;AACH,yDAAyD;AACzD,8G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ACvD,uFAA6D,CAAA;IAC7D,uFAA6D,CAAA;IAC7D,uFAA6D,CAAA;IAC7D,iFAAuD,CAAA;IACvD,qFAAmE,CAAA;IACnE,+FAAwE,CAAA;IACxE,+FAAwE,CAAA;IACxE,4FAAsE,CAAA;IACtE,0FAAqE,CAAA;IACrE,gGAAwE,CAAA;IACxE,0FAAqE,CAAA;IACrE,wFAAoE,CAAA;IACpE,oFAAkE,CAAA;AACpE,CAAC,EApJW,QAAQ,GAAR,gBAAQ,KAAR,gBAAQ,QAoJnB;AACD,wDAAwD","sourcesContent":["/*---------------------------------------------------------------------------------------------\r\n* Copyright (c) Bentley Systems, Incorporated. All rights reserved.\r\n* See LICENSE.md in the project root for license terms and full copyright notice.\r\n*--------------------------------------------------------------------------------------------*/\r\n/** @packageDocumentation\r\n * @module BeSQLite\r\n */\r\n\r\n/** Whether to open a database readonly or writeable.\r\n * @public\r\n */\r\nexport enum OpenMode {\r\n Readonly = 0x00000001,\r\n ReadWrite = 0x00000002,\r\n}\r\n\r\n/** Values, stored in changesets, that indicate what operation was performed on the database.\r\n * @public\r\n */\r\nexport enum DbOpcode {\r\n /** A row was deleted. */\r\n Delete = 9,\r\n /** A new row was inserted. */\r\n Insert = 18,\r\n /** Some columns of an existing row were updated. */\r\n Update = 23,\r\n}\r\n\r\n/** Values for return codes from BeSQLite functions. Consult SQLite documentation for further explanations.\r\n * @public\r\n */\r\n/* eslint-disable @typescript-eslint/naming-convention */\r\n// Disabling for the rest of the file since eslint does not correctly parse the entire enum, only parts of it\r\nexport enum DbResult {\r\n /** Success */\r\n BE_SQLITE_OK = 0,\r\n /** SQL error or missing database */\r\n BE_SQLITE_ERROR = 1,\r\n /** Internal logic error */\r\n BE_SQLITE_INTERNAL = 2,\r\n /** Access permission denied */\r\n BE_SQLITE_PERM = 3,\r\n /** Callback routine requested an abort */\r\n BE_SQLITE_ABORT = 4,\r\n /** The database file is locked */\r\n BE_SQLITE_BUSY = 5,\r\n /** A table in the database is locked */\r\n BE_SQLITE_LOCKED = 6,\r\n /** A malloc() failed */\r\n BE_SQLITE_NOMEM = 7,\r\n /** Attempt to write a readonly database */\r\n BE_SQLITE_READONLY = 8,\r\n /** Operation terminated by interrupt */\r\n BE_SQLITE_INTERRUPT = 9,\r\n /** Some kind of disk I/O error occurred */\r\n BE_SQLITE_IOERR = 10,\r\n /** The database disk image is malformed */\r\n BE_SQLITE_CORRUPT = 11,\r\n /** NOT USED. Table or record not found */\r\n BE_SQLITE_NOTFOUND = 12,\r\n /** Insertion failed because database is full or write operation failed because disk is full */\r\n BE_SQLITE_FULL = 13,\r\n /** Unable to open the database file */\r\n BE_SQLITE_CANTOPEN = 14,\r\n /** Database lock protocol error */\r\n BE_SQLITE_PROTOCOL = 15,\r\n /** Database is empty */\r\n BE_SQLITE_EMPTY = 16,\r\n /** The database schema changed */\r\n BE_SQLITE_SCHEMA = 17,\r\n /** String or BLOB exceeds size limit */\r\n BE_SQLITE_TOOBIG = 18,\r\n /** Abort due to constraint violation. See extended error values. */\r\n BE_SQLITE_CONSTRAINT_BASE = 19,\r\n /** Data type mismatch */\r\n BE_SQLITE_MISMATCH = 20,\r\n /** Library used incorrectly */\r\n BE_SQLITE_MISUSE = 21,\r\n /** Uses OS features not supported on host */\r\n BE_SQLITE_NOLFS = 22,\r\n /** Authorization denied */\r\n BE_SQLITE_AUTH = 23,\r\n /** Auxiliary database format error */\r\n BE_SQLITE_FORMAT = 24,\r\n /** 2nd parameter to Bind out of range */\r\n BE_SQLITE_RANGE = 25,\r\n /** File opened that is not a database file */\r\n BE_SQLITE_NOTADB = 26,\r\n /** Step() has another row ready */\r\n BE_SQLITE_ROW = 100,\r\n /** Step() has finished executing */\r\n BE_SQLITE_DONE = 101,\r\n\r\n BE_SQLITE_IOERR_READ = (BE_SQLITE_IOERR | (1 << 8)),\r\n BE_SQLITE_IOERR_SHORT_READ = (BE_SQLITE_IOERR | (2 << 8)),\r\n BE_SQLITE_IOERR_WRITE = (BE_SQLITE_IOERR | (3 << 8)),\r\n BE_SQLITE_IOERR_FSYNC = (BE_SQLITE_IOERR | (4 << 8)),\r\n BE_SQLITE_IOERR_DIR_FSYNC = (BE_SQLITE_IOERR | (5 << 8)),\r\n BE_SQLITE_IOERR_TRUNCATE = (BE_SQLITE_IOERR | (6 << 8)),\r\n BE_SQLITE_IOERR_FSTAT = (BE_SQLITE_IOERR | (7 << 8)),\r\n BE_SQLITE_IOERR_UNLOCK = (BE_SQLITE_IOERR | (8 << 8)),\r\n BE_SQLITE_IOERR_RDLOCK = (BE_SQLITE_IOERR | (9 << 8)),\r\n BE_SQLITE_IOERR_DELETE = (BE_SQLITE_IOERR | (10 << 8)),\r\n BE_SQLITE_IOERR_BLOCKED = (BE_SQLITE_IOERR | (11 << 8)),\r\n BE_SQLITE_IOERR_NOMEM = (BE_SQLITE_IOERR | (12 << 8)),\r\n BE_SQLITE_IOERR_ACCESS = (BE_SQLITE_IOERR | (13 << 8)),\r\n BE_SQLITE_IOERR_CHECKRESERVEDLOCK = (BE_SQLITE_IOERR | (14 << 8)),\r\n BE_SQLITE_IOERR_LOCK = (BE_SQLITE_IOERR | (15 << 8)),\r\n BE_SQLITE_IOERR_CLOSE = (BE_SQLITE_IOERR | (16 << 8)),\r\n BE_SQLITE_IOERR_DIR_CLOSE = (BE_SQLITE_IOERR | (17 << 8)),\r\n BE_SQLITE_IOERR_SHMOPEN = (BE_SQLITE_IOERR | (18 << 8)),\r\n BE_SQLITE_IOERR_SHMSIZE = (BE_SQLITE_IOERR | (19 << 8)),\r\n BE_SQLITE_IOERR_SHMLOCK = (BE_SQLITE_IOERR | (20 << 8)),\r\n BE_SQLITE_IOERR_SHMMAP = (BE_SQLITE_IOERR | (21 << 8)),\r\n BE_SQLITE_IOERR_SEEK = (BE_SQLITE_IOERR | (22 << 8)),\r\n BE_SQLITE_IOERR_DELETE_NOENT = (BE_SQLITE_IOERR | (23 << 8)),\r\n\r\n /** attempt to create a new file when a file by that name already exists */\r\n BE_SQLITE_ERROR_FileExists = (BE_SQLITE_IOERR | (1 << 24)),\r\n /** attempt to open a BeSQLite::Db that is already in use somewhere. */\r\n BE_SQLITE_ERROR_AlreadyOpen = (BE_SQLITE_IOERR | (2 << 24)),\r\n /** attempt to open a BeSQLite::Db that doesn't have a property table. */\r\n BE_SQLITE_ERROR_NoPropertyTable = (BE_SQLITE_IOERR | (3 << 24)),\r\n /** the database name is not a file. */\r\n BE_SQLITE_ERROR_FileNotFound = (BE_SQLITE_IOERR | (4 << 24)),\r\n /** there is no transaction active and the database was opened with AllowImplicitTransactions=false */\r\n BE_SQLITE_ERROR_NoTxnActive = (BE_SQLITE_IOERR | (5 << 24)),\r\n /** wrong BeSQLite profile version */\r\n BE_SQLITE_ERROR_BadDbProfile = (BE_SQLITE_IOERR | (6 << 24)),\r\n /** Profile of file could not be determined. */\r\n BE_SQLITE_ERROR_InvalidProfileVersion = (BE_SQLITE_IOERR | (7 << 24)),\r\n /** Upgrade of profile of file failed. */\r\n BE_SQLITE_ERROR_ProfileUpgradeFailed = (BE_SQLITE_IOERR | (8 << 24)),\r\n /** Profile of file is too old. Therefore file can only be opened read-only. */\r\n BE_SQLITE_ERROR_ProfileTooOldForReadWrite = (BE_SQLITE_IOERR | (9 << 24)),\r\n /** Profile of file is too old. Therefore file cannot be opened. */\r\n BE_SQLITE_ERROR_ProfileTooOld = (BE_SQLITE_IOERR | (10 << 24)),\r\n /** Profile of file is too new for read-write access. Therefore file can only be opened read-only. */\r\n BE_SQLITE_ERROR_ProfileTooNewForReadWrite = (BE_SQLITE_IOERR | (11 << 24)),\r\n /** Profile of file is too new. Therefore file cannot be opened. */\r\n BE_SQLITE_ERROR_ProfileTooNew = (BE_SQLITE_IOERR | (12 << 24)),\r\n /** attempt to commit with active changetrack */\r\n BE_SQLITE_ERROR_ChangeTrackError = (BE_SQLITE_IOERR | (13 << 24)),\r\n /** invalid version of the revision file is being imported */\r\n BE_SQLITE_ERROR_InvalidChangeSetVersion = (BE_SQLITE_IOERR | (14 << 24)),\r\n /** The schemas found in the database need to be upgraded */\r\n BE_SQLITE_ERROR_SchemaUpgradeRequired = (BE_SQLITE_IOERR | 15 << 24),\r\n /** The schemas found in the database are too new, and the application needs to be upgraded. */\r\n BE_SQLITE_ERROR_SchemaTooNew = (BE_SQLITE_IOERR | 16 << 24),\r\n /** The schemas found in the database are too old, and the DgnDb needs to be upgraded. */\r\n BE_SQLITE_ERROR_SchemaTooOld = (BE_SQLITE_IOERR | 17 << 24),\r\n /** Error acquiring a lock on the schemas before upgrade. */\r\n BE_SQLITE_ERROR_SchemaLockFailed = (BE_SQLITE_IOERR | 18 << 24),\r\n /** Error upgrading the schemas in the database. */\r\n BE_SQLITE_ERROR_SchemaUpgradeFailed = (BE_SQLITE_IOERR | 19 << 24),\r\n /** Error importing the schemas into the database. */\r\n BE_SQLITE_ERROR_SchemaImportFailed = (BE_SQLITE_IOERR | 20 << 24),\r\n /** Error acquiring locks or codes */\r\n BE_SQLITE_ERROR_CouldNotAcquireLocksOrCodes = (BE_SQLITE_IOERR | 21 << 24),\r\n /** Recommended that the schemas found in the database be upgraded */\r\n BE_SQLITE_ERROR_SchemaUpgradeRecommended = (BE_SQLITE_IOERR | 22 << 24),\r\n\r\n BE_SQLITE_LOCKED_SHAREDCACHE = (BE_SQLITE_LOCKED | (1 << 8)),\r\n BE_SQLITE_BUSY_RECOVERY = (BE_SQLITE_BUSY | (1 << 8)),\r\n BE_SQLITE_CANTOPEN_NOTEMPDIR = (BE_SQLITE_CANTOPEN | (1 << 8)),\r\n BE_SQLITE_CANTOPEN_ISDIR = (BE_SQLITE_CANTOPEN | (2 << 8)),\r\n BE_SQLITE_CANTOPEN_FULLPATH = (BE_SQLITE_CANTOPEN | (3 << 8)),\r\n BE_SQLITE_CORRUPT_VTAB = (BE_SQLITE_CORRUPT | (1 << 8)),\r\n BE_SQLITE_READONLY_RECOVERY = (BE_SQLITE_READONLY | (1 << 8)),\r\n BE_SQLITE_READONLY_CANTLOCK = (BE_SQLITE_READONLY | (2 << 8)),\r\n BE_SQLITE_READONLY_ROLLBACK = (BE_SQLITE_READONLY | (3 << 8)),\r\n BE_SQLITE_ABORT_ROLLBACK = (BE_SQLITE_ABORT | (2 << 8)),\r\n BE_SQLITE_CONSTRAINT_CHECK = (BE_SQLITE_CONSTRAINT_BASE | (1 << 8)),\r\n BE_SQLITE_CONSTRAINT_COMMITHOOK = (BE_SQLITE_CONSTRAINT_BASE | (2 << 8)),\r\n BE_SQLITE_CONSTRAINT_FOREIGNKEY = (BE_SQLITE_CONSTRAINT_BASE | (3 << 8)),\r\n BE_SQLITE_CONSTRAINT_FUNCTION = (BE_SQLITE_CONSTRAINT_BASE | (4 << 8)),\r\n BE_SQLITE_CONSTRAINT_NOTNULL = (BE_SQLITE_CONSTRAINT_BASE | (5 << 8)),\r\n BE_SQLITE_CONSTRAINT_PRIMARYKEY = (BE_SQLITE_CONSTRAINT_BASE | (6 << 8)),\r\n BE_SQLITE_CONSTRAINT_TRIGGER = (BE_SQLITE_CONSTRAINT_BASE | (7 << 8)),\r\n BE_SQLITE_CONSTRAINT_UNIQUE = (BE_SQLITE_CONSTRAINT_BASE | (8 << 8)),\r\n BE_SQLITE_CONSTRAINT_VTAB = (BE_SQLITE_CONSTRAINT_BASE | (9 << 8)),\r\n}\r\n/* eslint-enable @typescript-eslint/naming-convention */\r\n"]}
1
+ {"version":3,"file":"BeSQLite.js","sourceRoot":"","sources":["../../src/BeSQLite.ts"],"names":[],"mappings":";AAAA;;;+FAG+F;AAC/F;;GAEG;;;AAEH;;GAEG;AACH,IAAY,QAGX;AAHD,WAAY,QAAQ;IAClB,+CAAqB,CAAA;IACrB,iDAAsB,CAAA;AACxB,CAAC,EAHW,QAAQ,GAAR,gBAAQ,KAAR,gBAAQ,QAGnB;AAED;;GAEG;AACH,IAAY,QAOX;AAPD,WAAY,QAAQ;IAClB,yBAAyB;IACzB,2CAAU,CAAA;IACV,8BAA8B;IAC9B,4CAAW,CAAA;IACX,oDAAoD;IACpD,4CAAW,CAAA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A;IAEtE,yFAA4D,CAAA;IAC5D,+EAAqD,CAAA;IACrD,yFAA8D,CAAA;IAC9D,iFAA0D,CAAA;IAC1D,uFAA6D,CAAA;IAC7D,6EAAuD,CAAA;IACvD,uFAA6D,CAAA;IAC7D,uFAA6D,CAAA;IAC7D,uFAA6D,CAAA;IAC7D,iFAAuD,CAAA;IACvD,qFAAmE,CAAA;IACnE,+FAAwE,CAAA;IACxE,+FAAwE,CAAA;IACxE,4FAAsE,CAAA;IACtE,0FAAqE,CAAA;IACrE,gGAAwE,CAAA;IACxE,0FAAqE,CAAA;IACrE,wFAAoE,CAAA;IACpE,oFAAkE,CAAA;AACpE,CAAC,EAtJW,QAAQ,GAAR,gBAAQ,KAAR,gBAAQ,QAsJnB;AACD,wDAAwD","sourcesContent":["/*---------------------------------------------------------------------------------------------\r\n* Copyright (c) Bentley Systems, Incorporated. All rights reserved.\r\n* See LICENSE.md in the project root for license terms and full copyright notice.\r\n*--------------------------------------------------------------------------------------------*/\r\n/** @packageDocumentation\r\n * @module BeSQLite\r\n */\r\n\r\n/** Whether to open a database readonly or writeable.\r\n * @public\r\n */\r\nexport enum OpenMode {\r\n Readonly = 0x00000001,\r\n ReadWrite = 0x00000002,\r\n}\r\n\r\n/** Values, stored in changesets, that indicate what operation was performed on the database.\r\n * @public\r\n */\r\nexport enum DbOpcode {\r\n /** A row was deleted. */\r\n Delete = 9,\r\n /** A new row was inserted. */\r\n Insert = 18,\r\n /** Some columns of an existing row were updated. */\r\n Update = 23,\r\n}\r\n\r\n/** Values for return codes from BeSQLite functions. Consult SQLite documentation for further explanations.\r\n * @public\r\n */\r\n/* eslint-disable @typescript-eslint/naming-convention */\r\n// Disabling for the rest of the file since eslint does not correctly parse the entire enum, only parts of it\r\nexport enum DbResult {\r\n /** Success */\r\n BE_SQLITE_OK = 0,\r\n /** SQL error or missing database */\r\n BE_SQLITE_ERROR = 1,\r\n /** Internal logic error */\r\n BE_SQLITE_INTERNAL = 2,\r\n /** Access permission denied */\r\n BE_SQLITE_PERM = 3,\r\n /** Callback routine requested an abort */\r\n BE_SQLITE_ABORT = 4,\r\n /** The database file is locked */\r\n BE_SQLITE_BUSY = 5,\r\n /** A table in the database is locked */\r\n BE_SQLITE_LOCKED = 6,\r\n /** A malloc() failed */\r\n BE_SQLITE_NOMEM = 7,\r\n /** Attempt to write a readonly database */\r\n BE_SQLITE_READONLY = 8,\r\n /** Operation terminated by interrupt */\r\n BE_SQLITE_INTERRUPT = 9,\r\n /** Some kind of disk I/O error occurred */\r\n BE_SQLITE_IOERR = 10,\r\n /** The database disk image is malformed */\r\n BE_SQLITE_CORRUPT = 11,\r\n /** NOT USED. Table or record not found */\r\n BE_SQLITE_NOTFOUND = 12,\r\n /** Insertion failed because database is full or write operation failed because disk is full */\r\n BE_SQLITE_FULL = 13,\r\n /** Unable to open the database file */\r\n BE_SQLITE_CANTOPEN = 14,\r\n /** Database lock protocol error */\r\n BE_SQLITE_PROTOCOL = 15,\r\n /** Database is empty */\r\n BE_SQLITE_EMPTY = 16,\r\n /** The database schema changed */\r\n BE_SQLITE_SCHEMA = 17,\r\n /** String or BLOB exceeds size limit */\r\n BE_SQLITE_TOOBIG = 18,\r\n /** Abort due to constraint violation. See extended error values. */\r\n BE_SQLITE_CONSTRAINT_BASE = 19,\r\n /** Data type mismatch */\r\n BE_SQLITE_MISMATCH = 20,\r\n /** Library used incorrectly */\r\n BE_SQLITE_MISUSE = 21,\r\n /** Uses OS features not supported on host */\r\n BE_SQLITE_NOLFS = 22,\r\n /** Authorization denied */\r\n BE_SQLITE_AUTH = 23,\r\n /** Auxiliary database format error */\r\n BE_SQLITE_FORMAT = 24,\r\n /** 2nd parameter to Bind out of range */\r\n BE_SQLITE_RANGE = 25,\r\n /** File opened that is not a database file */\r\n BE_SQLITE_NOTADB = 26,\r\n /** Step() has another row ready */\r\n BE_SQLITE_ROW = 100,\r\n /** Step() has finished executing */\r\n BE_SQLITE_DONE = 101,\r\n\r\n BE_SQLITE_IOERR_READ = (BE_SQLITE_IOERR | (1 << 8)),\r\n BE_SQLITE_IOERR_SHORT_READ = (BE_SQLITE_IOERR | (2 << 8)),\r\n BE_SQLITE_IOERR_WRITE = (BE_SQLITE_IOERR | (3 << 8)),\r\n BE_SQLITE_IOERR_FSYNC = (BE_SQLITE_IOERR | (4 << 8)),\r\n BE_SQLITE_IOERR_DIR_FSYNC = (BE_SQLITE_IOERR | (5 << 8)),\r\n BE_SQLITE_IOERR_TRUNCATE = (BE_SQLITE_IOERR | (6 << 8)),\r\n BE_SQLITE_IOERR_FSTAT = (BE_SQLITE_IOERR | (7 << 8)),\r\n BE_SQLITE_IOERR_UNLOCK = (BE_SQLITE_IOERR | (8 << 8)),\r\n BE_SQLITE_IOERR_RDLOCK = (BE_SQLITE_IOERR | (9 << 8)),\r\n BE_SQLITE_IOERR_DELETE = (BE_SQLITE_IOERR | (10 << 8)),\r\n BE_SQLITE_IOERR_BLOCKED = (BE_SQLITE_IOERR | (11 << 8)),\r\n BE_SQLITE_IOERR_NOMEM = (BE_SQLITE_IOERR | (12 << 8)),\r\n BE_SQLITE_IOERR_ACCESS = (BE_SQLITE_IOERR | (13 << 8)),\r\n BE_SQLITE_IOERR_CHECKRESERVEDLOCK = (BE_SQLITE_IOERR | (14 << 8)),\r\n BE_SQLITE_IOERR_LOCK = (BE_SQLITE_IOERR | (15 << 8)),\r\n BE_SQLITE_IOERR_CLOSE = (BE_SQLITE_IOERR | (16 << 8)),\r\n BE_SQLITE_IOERR_DIR_CLOSE = (BE_SQLITE_IOERR | (17 << 8)),\r\n BE_SQLITE_IOERR_SHMOPEN = (BE_SQLITE_IOERR | (18 << 8)),\r\n BE_SQLITE_IOERR_SHMSIZE = (BE_SQLITE_IOERR | (19 << 8)),\r\n BE_SQLITE_IOERR_SHMLOCK = (BE_SQLITE_IOERR | (20 << 8)),\r\n BE_SQLITE_IOERR_SHMMAP = (BE_SQLITE_IOERR | (21 << 8)),\r\n BE_SQLITE_IOERR_SEEK = (BE_SQLITE_IOERR | (22 << 8)),\r\n BE_SQLITE_IOERR_DELETE_NOENT = (BE_SQLITE_IOERR | (23 << 8)),\r\n\r\n /** attempt to create a new file when a file by that name already exists */\r\n BE_SQLITE_ERROR_FileExists = (BE_SQLITE_IOERR | (1 << 24)),\r\n /** attempt to open a BeSQLite::Db that is already in use somewhere. */\r\n BE_SQLITE_ERROR_AlreadyOpen = (BE_SQLITE_IOERR | (2 << 24)),\r\n /** attempt to open a BeSQLite::Db that doesn't have a property table. */\r\n BE_SQLITE_ERROR_NoPropertyTable = (BE_SQLITE_IOERR | (3 << 24)),\r\n /** the database name is not a file. */\r\n BE_SQLITE_ERROR_FileNotFound = (BE_SQLITE_IOERR | (4 << 24)),\r\n /** there is no transaction active and the database was opened with AllowImplicitTransactions=false */\r\n BE_SQLITE_ERROR_NoTxnActive = (BE_SQLITE_IOERR | (5 << 24)),\r\n /** wrong BeSQLite profile version */\r\n BE_SQLITE_ERROR_BadDbProfile = (BE_SQLITE_IOERR | (6 << 24)),\r\n /** Profile of file could not be determined. */\r\n BE_SQLITE_ERROR_InvalidProfileVersion = (BE_SQLITE_IOERR | (7 << 24)),\r\n /** Upgrade of profile of file failed. */\r\n BE_SQLITE_ERROR_ProfileUpgradeFailed = (BE_SQLITE_IOERR | (8 << 24)),\r\n /** Profile of file is too old. Therefore file can only be opened read-only. */\r\n BE_SQLITE_ERROR_ProfileTooOldForReadWrite = (BE_SQLITE_IOERR | (9 << 24)),\r\n /** Profile of file is too old. Therefore file cannot be opened. */\r\n BE_SQLITE_ERROR_ProfileTooOld = (BE_SQLITE_IOERR | (10 << 24)),\r\n /** Profile of file is too new for read-write access. Therefore file can only be opened read-only. */\r\n BE_SQLITE_ERROR_ProfileTooNewForReadWrite = (BE_SQLITE_IOERR | (11 << 24)),\r\n /** Profile of file is too new. Therefore file cannot be opened. */\r\n BE_SQLITE_ERROR_ProfileTooNew = (BE_SQLITE_IOERR | (12 << 24)),\r\n /** attempt to commit with active changetrack */\r\n BE_SQLITE_ERROR_ChangeTrackError = (BE_SQLITE_IOERR | (13 << 24)),\r\n /** invalid version of the revision file is being imported */\r\n BE_SQLITE_ERROR_InvalidChangeSetVersion = (BE_SQLITE_IOERR | (14 << 24)),\r\n /** The schemas found in the database need to be upgraded */\r\n BE_SQLITE_ERROR_SchemaUpgradeRequired = (BE_SQLITE_IOERR | 15 << 24),\r\n /** The schemas found in the database are too new, and the application needs to be upgraded. */\r\n BE_SQLITE_ERROR_SchemaTooNew = (BE_SQLITE_IOERR | 16 << 24),\r\n /** The schemas found in the database are too old, and the DgnDb needs to be upgraded. */\r\n BE_SQLITE_ERROR_SchemaTooOld = (BE_SQLITE_IOERR | 17 << 24),\r\n /** Error acquiring a lock on the schemas before upgrade. */\r\n BE_SQLITE_ERROR_SchemaLockFailed = (BE_SQLITE_IOERR | 18 << 24),\r\n /** Error upgrading the schemas in the database. */\r\n BE_SQLITE_ERROR_SchemaUpgradeFailed = (BE_SQLITE_IOERR | 19 << 24),\r\n /** Error importing the schemas into the database. */\r\n BE_SQLITE_ERROR_SchemaImportFailed = (BE_SQLITE_IOERR | 20 << 24),\r\n /** Error acquiring locks or codes */\r\n BE_SQLITE_ERROR_CouldNotAcquireLocksOrCodes = (BE_SQLITE_IOERR | 21 << 24),\r\n /** Recommended that the schemas found in the database be upgraded */\r\n BE_SQLITE_ERROR_SchemaUpgradeRecommended = (BE_SQLITE_IOERR | 22 << 24),\r\n /** schema update require data transform */\r\n BE_SQLITE_ERROR_DataTransformRequired = (BE_SQLITE_IOERR | (23 << 24)),\r\n\r\n BE_SQLITE_LOCKED_SHAREDCACHE = (BE_SQLITE_LOCKED | (1 << 8)),\r\n BE_SQLITE_BUSY_RECOVERY = (BE_SQLITE_BUSY | (1 << 8)),\r\n BE_SQLITE_CANTOPEN_NOTEMPDIR = (BE_SQLITE_CANTOPEN | (1 << 8)),\r\n BE_SQLITE_CANTOPEN_ISDIR = (BE_SQLITE_CANTOPEN | (2 << 8)),\r\n BE_SQLITE_CANTOPEN_FULLPATH = (BE_SQLITE_CANTOPEN | (3 << 8)),\r\n BE_SQLITE_CORRUPT_VTAB = (BE_SQLITE_CORRUPT | (1 << 8)),\r\n BE_SQLITE_READONLY_RECOVERY = (BE_SQLITE_READONLY | (1 << 8)),\r\n BE_SQLITE_READONLY_CANTLOCK = (BE_SQLITE_READONLY | (2 << 8)),\r\n BE_SQLITE_READONLY_ROLLBACK = (BE_SQLITE_READONLY | (3 << 8)),\r\n BE_SQLITE_ABORT_ROLLBACK = (BE_SQLITE_ABORT | (2 << 8)),\r\n BE_SQLITE_CONSTRAINT_CHECK = (BE_SQLITE_CONSTRAINT_BASE | (1 << 8)),\r\n BE_SQLITE_CONSTRAINT_COMMITHOOK = (BE_SQLITE_CONSTRAINT_BASE | (2 << 8)),\r\n BE_SQLITE_CONSTRAINT_FOREIGNKEY = (BE_SQLITE_CONSTRAINT_BASE | (3 << 8)),\r\n BE_SQLITE_CONSTRAINT_FUNCTION = (BE_SQLITE_CONSTRAINT_BASE | (4 << 8)),\r\n BE_SQLITE_CONSTRAINT_NOTNULL = (BE_SQLITE_CONSTRAINT_BASE | (5 << 8)),\r\n BE_SQLITE_CONSTRAINT_PRIMARYKEY = (BE_SQLITE_CONSTRAINT_BASE | (6 << 8)),\r\n BE_SQLITE_CONSTRAINT_TRIGGER = (BE_SQLITE_CONSTRAINT_BASE | (7 << 8)),\r\n BE_SQLITE_CONSTRAINT_UNIQUE = (BE_SQLITE_CONSTRAINT_BASE | (8 << 8)),\r\n BE_SQLITE_CONSTRAINT_VTAB = (BE_SQLITE_CONSTRAINT_BASE | (9 << 8)),\r\n}\r\n/* eslint-enable @typescript-eslint/naming-convention */\r\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"BentleyError.d.ts","sourceRoot":"","sources":["../../src/BentleyError.ts"],"names":[],"mappings":"AAIA;;GAEG;AAIH;;;;;GAKG;AACH,oBAAY,aAAa;IACvB,OAAO,IAAS;IAChB,KAAK,QAAS;CACf;AAED;;;GAGG;AACH,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AAC,SAAS,CAAkB;IAE5C;;;;OAIG;gBACuB,WAAW,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,MAAM,EAAE,QAAQ,CAAC,EAAE,eAAe;IAO3F,sEAAsE;IACtE,IAAW,WAAW,IAAI,OAAO,CAAyC;IAE1E,mEAAmE;IAC5D,WAAW,IAAI,MAAM,GAAG,SAAS;IAIxC,4EAA4E;WAC9D,WAAW,CAAC,QAAQ,EAAE,eAAe,GAAG,MAAM,GAAG,SAAS;IAIxE,mHAAmH;IACnH,SAAS,CAAC,SAAS,IAAI,MAAM;IA2R7B;;;OAGG;WACW,eAAe,CAAC,KAAK,EAAE,OAAO,GAAG,MAAM;IAqBrD;;;OAGG;WACW,aAAa,CAAC,KAAK,EAAE,OAAO,GAAG,MAAM,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"}
@@ -474,6 +474,7 @@ class BentleyError extends Error {
474
474
  case BeSQLite_1.DbResult.BE_SQLITE_IOERR_SHMMAP: return "BE_SQLITE_IOERR_SHMMAP";
475
475
  case BeSQLite_1.DbResult.BE_SQLITE_IOERR_SEEK: return "BE_SQLITE_IOERR_SEEK";
476
476
  case BeSQLite_1.DbResult.BE_SQLITE_IOERR_DELETE_NOENT: return "BE_SQLITE_IOERR_DELETE_NOENT";
477
+ case BeSQLite_1.DbResult.BE_SQLITE_ERROR_DataTransformRequired: return "Schema update require to transform data";
477
478
  case BeSQLite_1.DbResult.BE_SQLITE_ERROR_FileExists: return "File Exists";
478
479
  case BeSQLite_1.DbResult.BE_SQLITE_ERROR_AlreadyOpen: return "Already Open";
479
480
  case BeSQLite_1.DbResult.BE_SQLITE_ERROR_NoPropertyTable: return "No Property Table";
@@ -1 +1 @@
1
- {"version":3,"file":"BentleyError.js","sourceRoot":"","sources":["../../src/BentleyError.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a,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;CACF;AA7XD,oCA6XC","sourcesContent":["/*---------------------------------------------------------------------------------------------\r\n* Copyright (c) Bentley Systems, Incorporated. All rights reserved.\r\n* See LICENSE.md in the project root for license terms and full copyright notice.\r\n*--------------------------------------------------------------------------------------------*/\r\n/** @packageDocumentation\r\n * @module Errors\r\n */\r\n\r\nimport { DbResult } from \"./BeSQLite\";\r\n\r\n/** Standard status code.\r\n * This status code should be rarely used.\r\n * Prefer to throw an exception to indicate an error, rather than returning a special status code.\r\n * If a status code is to be returned, prefer to return a more specific error status type such as IModelStatus or DbResult.\r\n * @public\r\n */\r\nexport enum BentleyStatus {\r\n SUCCESS = 0x0000,\r\n ERROR = 0x8000,\r\n}\r\n\r\n/** Status codes that are used in conjunction with [[BentleyError]].\r\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.\r\n * @public\r\n */\r\nexport enum IModelStatus {\r\n IMODEL_ERROR_BASE = 0x10000,\r\n Success = 0,\r\n AlreadyLoaded = IMODEL_ERROR_BASE + 1,\r\n AlreadyOpen = IMODEL_ERROR_BASE + 2,\r\n BadArg = IMODEL_ERROR_BASE + 3,\r\n BadElement = IMODEL_ERROR_BASE + 4,\r\n BadModel = IMODEL_ERROR_BASE + 5,\r\n BadRequest = IMODEL_ERROR_BASE + 6,\r\n BadSchema = IMODEL_ERROR_BASE + 7,\r\n CannotUndo = IMODEL_ERROR_BASE + 8,\r\n CodeNotReserved = IMODEL_ERROR_BASE + 9,\r\n DeletionProhibited = IMODEL_ERROR_BASE + 10,\r\n DuplicateCode = IMODEL_ERROR_BASE + 11,\r\n DuplicateName = IMODEL_ERROR_BASE + 12,\r\n ElementBlockedChange = IMODEL_ERROR_BASE + 13,\r\n FileAlreadyExists = IMODEL_ERROR_BASE + 14,\r\n FileNotFound = IMODEL_ERROR_BASE + 15,\r\n FileNotLoaded = IMODEL_ERROR_BASE + 16,\r\n ForeignKeyConstraint = IMODEL_ERROR_BASE + 17,\r\n IdExists = IMODEL_ERROR_BASE + 18,\r\n InDynamicTransaction = IMODEL_ERROR_BASE + 19,\r\n InvalidCategory = IMODEL_ERROR_BASE + 20,\r\n InvalidCode = IMODEL_ERROR_BASE + 21,\r\n InvalidCodeSpec = IMODEL_ERROR_BASE + 22,\r\n InvalidId = IMODEL_ERROR_BASE + 23,\r\n InvalidName = IMODEL_ERROR_BASE + 24,\r\n InvalidParent = IMODEL_ERROR_BASE + 25,\r\n InvalidProfileVersion = IMODEL_ERROR_BASE + 26,\r\n IsCreatingChangeSet = IMODEL_ERROR_BASE + 27,\r\n LockNotHeld = IMODEL_ERROR_BASE + 28,\r\n Mismatch2d3d = IMODEL_ERROR_BASE + 29,\r\n MismatchGcs = IMODEL_ERROR_BASE + 30,\r\n MissingDomain = IMODEL_ERROR_BASE + 31,\r\n MissingHandler = IMODEL_ERROR_BASE + 32,\r\n MissingId = IMODEL_ERROR_BASE + 33,\r\n NoGeometry = IMODEL_ERROR_BASE + 34,\r\n NoMultiTxnOperation = IMODEL_ERROR_BASE + 35,\r\n NotEnabled = IMODEL_ERROR_BASE + 37,\r\n NotFound = IMODEL_ERROR_BASE + 38,\r\n NotOpen = IMODEL_ERROR_BASE + 39,\r\n NotOpenForWrite = IMODEL_ERROR_BASE + 40,\r\n NotSameUnitBase = IMODEL_ERROR_BASE + 41,\r\n NothingToRedo = IMODEL_ERROR_BASE + 42,\r\n NothingToUndo = IMODEL_ERROR_BASE + 43,\r\n ParentBlockedChange = IMODEL_ERROR_BASE + 44,\r\n ReadError = IMODEL_ERROR_BASE + 45,\r\n ReadOnly = IMODEL_ERROR_BASE + 46,\r\n ReadOnlyDomain = IMODEL_ERROR_BASE + 47,\r\n RepositoryManagerError = IMODEL_ERROR_BASE + 48,\r\n SQLiteError = IMODEL_ERROR_BASE + 49,\r\n TransactionActive = IMODEL_ERROR_BASE + 50,\r\n UnitsMissing = IMODEL_ERROR_BASE + 51,\r\n UnknownFormat = IMODEL_ERROR_BASE + 52,\r\n UpgradeFailed = IMODEL_ERROR_BASE + 53,\r\n ValidationFailed = IMODEL_ERROR_BASE + 54,\r\n VersionTooNew = IMODEL_ERROR_BASE + 55,\r\n VersionTooOld = IMODEL_ERROR_BASE + 56,\r\n ViewNotFound = IMODEL_ERROR_BASE + 57,\r\n WriteError = IMODEL_ERROR_BASE + 58,\r\n WrongClass = IMODEL_ERROR_BASE + 59,\r\n WrongIModel = IMODEL_ERROR_BASE + 60,\r\n WrongDomain = IMODEL_ERROR_BASE + 61,\r\n WrongElement = IMODEL_ERROR_BASE + 62,\r\n WrongHandler = IMODEL_ERROR_BASE + 63,\r\n WrongModel = IMODEL_ERROR_BASE + 64,\r\n ConstraintNotUnique = IMODEL_ERROR_BASE + 65,\r\n NoGeoLocation = IMODEL_ERROR_BASE + 66,\r\n ServerTimeout = IMODEL_ERROR_BASE + 67,\r\n NoContent = IMODEL_ERROR_BASE + 68,\r\n NotRegistered = IMODEL_ERROR_BASE + 69,\r\n FunctionNotFound = IMODEL_ERROR_BASE + 70,\r\n NoActiveCommand = IMODEL_ERROR_BASE + 71,\r\n}\r\n\r\n/** Error statuses produced by various briefcase operations, typically encountered as the `errorNumber` of an [IModelError]($common).\r\n * @public\r\n */\r\nexport enum BriefcaseStatus {\r\n BRIEFCASE_STATUS_BASE = 0x20000,\r\n CannotAcquire = BRIEFCASE_STATUS_BASE,\r\n CannotDownload = BRIEFCASE_STATUS_BASE + 1,\r\n CannotUpload = BRIEFCASE_STATUS_BASE + 2,\r\n CannotCopy = BRIEFCASE_STATUS_BASE + 3,\r\n CannotDelete = BRIEFCASE_STATUS_BASE + 4,\r\n VersionNotFound = BRIEFCASE_STATUS_BASE + 5,\r\n CannotApplyChanges = BRIEFCASE_STATUS_BASE + 6,\r\n DownloadCancelled = BRIEFCASE_STATUS_BASE + 7,\r\n ContainsDeletedChangeSets = BRIEFCASE_STATUS_BASE + 8,\r\n}\r\n\r\n/** RpcInterface status codes\r\n * @beta\r\n */\r\nexport enum RpcInterfaceStatus {\r\n Success = 0,\r\n RPC_INTERFACE_ERROR_BASE = 0x21000,\r\n /** The RpcInterface implemented by the server is incompatible with the interface requested by the client. */\r\n IncompatibleVersion = RPC_INTERFACE_ERROR_BASE,\r\n}\r\n\r\n/** Error statuses produced by various Changeset operations, typically encountered as the `errorNumber` of an [IModelError]($common).\r\n * @public\r\n */\r\nexport enum ChangeSetStatus { // Note: Values must be kept in sync with ChangeSetStatus in DgnPlatform\r\n Success = 0,\r\n CHANGESET_ERROR_BASE = 0x16000,\r\n /** Error applying a change set when reversing or reinstating it */\r\n ApplyError = CHANGESET_ERROR_BASE + 1,\r\n /** Change tracking has not been enabled. The ChangeSet API mandates this. */\r\n ChangeTrackingNotEnabled = CHANGESET_ERROR_BASE + 2,\r\n /** Contents of the change stream are corrupted and does not match the ChangeSet */\r\n CorruptedChangeStream = CHANGESET_ERROR_BASE + 3,\r\n /** File containing the changes to the change set is not found */\r\n FileNotFound = CHANGESET_ERROR_BASE + 4,\r\n /** Error writing the contents of the change set to the backing change stream file */\r\n FileWriteError = CHANGESET_ERROR_BASE + 5,\r\n /** Cannot perform the operation since the Db has local changes */\r\n HasLocalChanges = CHANGESET_ERROR_BASE + 6,\r\n /** Cannot perform the operation since current transaction has uncommitted changes */\r\n HasUncommittedChanges = CHANGESET_ERROR_BASE + 7,\r\n /** Invalid ChangeSet Id */\r\n InvalidId = CHANGESET_ERROR_BASE + 8,\r\n /** Invalid version of the change set */\r\n InvalidVersion = CHANGESET_ERROR_BASE + 9,\r\n /** Cannot perform the operation since system is in the middle of a dynamic transaction */\r\n InDynamicTransaction = CHANGESET_ERROR_BASE + 10,\r\n /** Cannot perform operation since system is in the middle of a creating a change set */\r\n IsCreatingChangeSet = CHANGESET_ERROR_BASE + 11,\r\n /** Cannot perform operation since the system is not creating a change set */\r\n IsNotCreatingChangeSet = CHANGESET_ERROR_BASE + 12,\r\n /** Error propagating the changes after the merge */\r\n MergePropagationError = CHANGESET_ERROR_BASE + 13,\r\n /** No change sets to merge */\r\n NothingToMerge = CHANGESET_ERROR_BASE + 14,\r\n /** No transactions are available to create a change set */\r\n NoTransactions = CHANGESET_ERROR_BASE + 15,\r\n /** Parent change set of the Db does not match the parent id of the change set */\r\n ParentMismatch = CHANGESET_ERROR_BASE + 16,\r\n /** Error performing a SQLite operation on the Db */\r\n SQLiteError = CHANGESET_ERROR_BASE + 17,\r\n /** ChangeSet originated in a different Db */\r\n WrongDgnDb = CHANGESET_ERROR_BASE + 18,\r\n /** Could not open the DgnDb to merge change set */\r\n CouldNotOpenDgnDb = CHANGESET_ERROR_BASE + 19,\r\n /** Cannot merge changes in in an open DgnDb. Close the DgnDb, and process the operation when it is opened. */\r\n MergeSchemaChangesOnOpen = CHANGESET_ERROR_BASE + 20,\r\n /** Cannot reverse or reinstate schema changes. */\r\n ReverseOrReinstateSchemaChanges = CHANGESET_ERROR_BASE + 21,\r\n /** Cannot process changes schema changes in an open DgnDb. Close the DgnDb, and process the operation when it is opened. */\r\n ProcessSchemaChangesOnOpen = CHANGESET_ERROR_BASE + 22,\r\n /** Cannot merge changes into a Readonly DgnDb. */\r\n CannotMergeIntoReadonly = CHANGESET_ERROR_BASE + 23,\r\n /** Cannot merge changes into a Master DgnDb. */\r\n CannotMergeIntoMaster = CHANGESET_ERROR_BASE + 24,\r\n /** Cannot merge changes into a DgnDb that has reversed change sets. */\r\n CannotMergeIntoReversed = CHANGESET_ERROR_BASE + 25,\r\n /** ChangeSet(s) download was cancelled. */\r\n DownloadCancelled = CHANGESET_ERROR_BASE + 26,\r\n}\r\n\r\n/** Return codes for methods which perform repository management operations\r\n * @internal\r\n */\r\nexport enum RepositoryStatus {\r\n Success = 0,\r\n /** The repository server did not respond to a request */\r\n ServerUnavailable = 0x15001,\r\n /** A requested lock was already held by another briefcase */\r\n LockAlreadyHeld = 0x15002,\r\n /** Failed to sync briefcase manager with server */\r\n SyncError = 0x15003,\r\n /** Response from server not understood */\r\n InvalidResponse = 0x15004,\r\n /** An operation requires local changes to be committed or abandoned */\r\n PendingTransactions = 0x15005,\r\n /** A lock cannot be relinquished because the associated object has been modified */\r\n LockUsed = 0x15006,\r\n /** An operation required creation of a ChangeSet, which failed */\r\n CannotCreateChangeSet = 0x15007,\r\n /** Request to server not understood */\r\n InvalidRequest = 0x15008,\r\n /** A change set committed to the server must be integrated into the briefcase before the operation can be completed */\r\n ChangeSetRequired = 0x15009,\r\n /** A requested DgnCode is reserved by another briefcase or in use */\r\n CodeUnavailable = 0x1500A,\r\n /** A DgnCode cannot be released because it has not been reserved by the requesting briefcase */\r\n CodeNotReserved = 0x1500B,\r\n /** A DgnCode cannot be relinquished because it has been used locally */\r\n CodeUsed = 0x1500C,\r\n /** A required lock is not held by this briefcase */\r\n LockNotHeld = 0x1500D,\r\n /** Repository is currently locked, no changes allowed */\r\n RepositoryIsLocked = 0x1500E,\r\n /** Channel write constraint violation, such as an attempt to write outside the designated channel. */\r\n ChannelConstraintViolation = 0x1500F,\r\n}\r\n\r\n/** Status from returned HTTP status code\r\n * @beta\r\n */\r\nexport enum HttpStatus {\r\n /** 2xx Success */\r\n Success = 0,\r\n /** 1xx Informational responses */\r\n Info = 0x17001,\r\n /** 3xx Redirection */\r\n Redirection = 0x17002,\r\n /** 4xx Client errors */\r\n ClientError = 0x17003,\r\n /** 5xx Server errors */\r\n ServerError = 0x17004,\r\n}\r\n\r\n/** Statuses produced by APIs that interact with iModelHub, typically encountered as the `errorNumber` of an [IModelError]($common).\r\n * @public\r\n */\r\nexport enum IModelHubStatus {\r\n Success = 0,\r\n IMODELHUBERROR_BASE = 0x19000,\r\n IMODELHUBERROR_REQUESTERRORBASE = 0x19100,\r\n Unknown = IMODELHUBERROR_BASE + 1,\r\n MissingRequiredProperties = IMODELHUBERROR_BASE + 2,\r\n InvalidPropertiesValues = IMODELHUBERROR_BASE + 3,\r\n UserDoesNotHavePermission = IMODELHUBERROR_BASE + 4,\r\n UserDoesNotHaveAccess = IMODELHUBERROR_BASE + 5,\r\n InvalidBriefcase = IMODELHUBERROR_BASE + 6,\r\n BriefcaseDoesNotExist = IMODELHUBERROR_BASE + 7,\r\n BriefcaseDoesNotBelongToUser = IMODELHUBERROR_BASE + 8,\r\n AnotherUserPushing = IMODELHUBERROR_BASE + 9,\r\n ChangeSetAlreadyExists = IMODELHUBERROR_BASE + 10,\r\n ChangeSetDoesNotExist = IMODELHUBERROR_BASE + 11,\r\n FileIsNotUploaded = IMODELHUBERROR_BASE + 12,\r\n iModelIsNotInitialized = IMODELHUBERROR_BASE + 13,\r\n ChangeSetPointsToBadSeed = IMODELHUBERROR_BASE + 14,\r\n OperationFailed = IMODELHUBERROR_BASE + 15,\r\n PullIsRequired = IMODELHUBERROR_BASE + 16,\r\n MaximumNumberOfBriefcasesPerUser = IMODELHUBERROR_BASE + 17,\r\n MaximumNumberOfBriefcasesPerUserPerMinute = IMODELHUBERROR_BASE + 18,\r\n DatabaseTemporarilyLocked = IMODELHUBERROR_BASE + 19,\r\n iModelIsLocked = IMODELHUBERROR_BASE + 20,\r\n CodesExist = IMODELHUBERROR_BASE + 21,\r\n LocksExist = IMODELHUBERROR_BASE + 22,\r\n iModelAlreadyExists = IMODELHUBERROR_BASE + 23,\r\n iModelDoesNotExist = IMODELHUBERROR_BASE + 24,\r\n FileDoesNotExist = IMODELHUBERROR_BASE + 25,\r\n FileAlreadyExists = IMODELHUBERROR_BASE + 26,\r\n LockDoesNotExist = IMODELHUBERROR_BASE + 27,\r\n LockOwnedByAnotherBriefcase = IMODELHUBERROR_BASE + 28,\r\n CodeStateInvalid = IMODELHUBERROR_BASE + 29,\r\n CodeReservedByAnotherBriefcase = IMODELHUBERROR_BASE + 30,\r\n CodeDoesNotExist = IMODELHUBERROR_BASE + 31,\r\n EventTypeDoesNotExist = IMODELHUBERROR_BASE + 32,\r\n EventSubscriptionDoesNotExist = IMODELHUBERROR_BASE + 33,\r\n EventSubscriptionAlreadyExists = IMODELHUBERROR_BASE + 34,\r\n ITwinIdIsNotSpecified = IMODELHUBERROR_BASE + 35,\r\n FailedToGetITwinPermissions = IMODELHUBERROR_BASE + 36,\r\n FailedToGetITwinMembers = IMODELHUBERROR_BASE + 37,\r\n ChangeSetAlreadyHasVersion = IMODELHUBERROR_BASE + 38,\r\n VersionAlreadyExists = IMODELHUBERROR_BASE + 39,\r\n JobSchedulingFailed = IMODELHUBERROR_BASE + 40,\r\n ConflictsAggregate = IMODELHUBERROR_BASE + 41,\r\n FailedToGetITwinById = IMODELHUBERROR_BASE + 42,\r\n\r\n DatabaseOperationFailed = IMODELHUBERROR_BASE + 43,\r\n SeedFileInitializationFailed = IMODELHUBERROR_BASE + 44,\r\n\r\n FailedToGetAssetPermissions = IMODELHUBERROR_BASE + 45,\r\n FailedToGetAssetMembers = IMODELHUBERROR_BASE + 46,\r\n ITwinDoesNotExist = IMODELHUBERROR_BASE + 47,\r\n\r\n LockChunkDoesNotExist = IMODELHUBERROR_BASE + 49,\r\n\r\n CheckpointAlreadyExists = IMODELHUBERROR_BASE + 50,\r\n CheckpointDoesNotExist = IMODELHUBERROR_BASE + 51,\r\n\r\n // Errors that are returned for incorrect iModelHub request.\r\n UndefinedArgumentError = IMODELHUBERROR_REQUESTERRORBASE + 1,\r\n InvalidArgumentError = IMODELHUBERROR_REQUESTERRORBASE + 2,\r\n MissingDownloadUrlError = IMODELHUBERROR_REQUESTERRORBASE + 3,\r\n NotSupportedInBrowser = IMODELHUBERROR_REQUESTERRORBASE + 4,\r\n FileHandlerNotSet = IMODELHUBERROR_REQUESTERRORBASE + 5,\r\n FileNotFound = IMODELHUBERROR_REQUESTERRORBASE + 6,\r\n InitializationTimeout = IMODELHUBERROR_REQUESTERRORBASE + 7,\r\n}\r\n\r\n/** GeoServiceStatus errors\r\n * @public\r\n */\r\nexport enum GeoServiceStatus {\r\n Success = 0,\r\n GEOSERVICESTATUS_BASE = 0x24000,\r\n // Error mapped from 'IModelStatus'\r\n NoGeoLocation = IModelStatus.NoGeoLocation,\r\n // Following errors are mapped from 'GeoCoordStatus'\r\n OutOfUsefulRange = GEOSERVICESTATUS_BASE + 1,\r\n OutOfMathematicalDomain = GEOSERVICESTATUS_BASE + 2,\r\n NoDatumConverter = GEOSERVICESTATUS_BASE + 3,\r\n VerticalDatumConvertError = GEOSERVICESTATUS_BASE + 4,\r\n CSMapError = GEOSERVICESTATUS_BASE + 5,\r\n Pending = GEOSERVICESTATUS_BASE + 6,\r\n}\r\n\r\n/** Error status from various reality data operations\r\n * @alpha\r\n */\r\nexport enum RealityDataStatus {\r\n Success = 0,\r\n REALITYDATA_ERROR_BASE = 0x25000,\r\n InvalidData = REALITYDATA_ERROR_BASE + 1,\r\n}\r\n\r\n/** When you want to associate an explanatory message with an error status value.\r\n * @internal\r\n */\r\nexport interface StatusCodeWithMessage<ErrorCodeType> {\r\n status: ErrorCodeType;\r\n message: string;\r\n}\r\n\r\n/** A function that returns a metadata object for a [[BentleyError]].\r\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.\r\n * @public\r\n */\r\nexport type GetMetaDataFunction = () => object | undefined;\r\n\r\n/** Optional metadata attached to a [[BentleyError]]. May either be an object or a function that returns an object.\r\n * If this exception is logged and metadata is present, the metaData object is attached to the log entry via `JSON.stringify`\r\n * @public\r\n */\r\nexport type LoggingMetaData = GetMetaDataFunction | object | undefined;\r\n\r\nfunction isObject(obj: unknown): obj is { [key: string]: unknown } {\r\n return typeof obj === \"object\" && obj !== null;\r\n}\r\n\r\ninterface ErrorProps {\r\n message: string;\r\n stack?: string;\r\n metadata?: object;\r\n}\r\n\r\n/** Base exception class for iTwin.js exceptions.\r\n * @public\r\n */\r\nexport class BentleyError extends Error {\r\n private readonly _metaData: LoggingMetaData;\r\n\r\n /**\r\n * @param errorNumber The a number that identifies of the problem.\r\n * @param message message that describes the problem (should not be localized).\r\n * @param metaData metaData about the exception.\r\n */\r\n public constructor(public errorNumber: number, message?: string, metaData?: LoggingMetaData) {\r\n super(message);\r\n this.errorNumber = errorNumber;\r\n this._metaData = metaData;\r\n this.name = this._initName();\r\n }\r\n\r\n /** Returns true if this BentleyError includes (optional) metadata. */\r\n public get hasMetaData(): boolean { return undefined !== this._metaData; }\r\n\r\n /** get the meta data associated with this BentleyError, if any. */\r\n public getMetaData(): object | undefined {\r\n return BentleyError.getMetaData(this._metaData);\r\n }\r\n\r\n /** get the metadata object associated with an ExceptionMetaData, if any. */\r\n public static getMetaData(metaData: LoggingMetaData): object | undefined {\r\n return (typeof metaData === \"function\") ? metaData() : metaData;\r\n }\r\n\r\n /** This function returns the name of each error status. Override this method to handle more error status codes. */\r\n protected _initName(): string {\r\n switch (this.errorNumber) {\r\n case IModelStatus.AlreadyLoaded: return \"Already Loaded\";\r\n case IModelStatus.AlreadyOpen: return \"Already Open\";\r\n case IModelStatus.BadArg: return \"Bad Arg\";\r\n case IModelStatus.BadElement: return \"Bad Element\";\r\n case IModelStatus.BadModel: return \"Bad Model\";\r\n case IModelStatus.BadRequest: return \"Bad Request\";\r\n case IModelStatus.BadSchema: return \"Bad Schema\";\r\n case IModelStatus.CannotUndo: return \"Can not Undo\";\r\n case IModelStatus.CodeNotReserved: return \"Code Not Reserved\";\r\n case IModelStatus.DeletionProhibited: return \"Deletion Prohibited\";\r\n case IModelStatus.DuplicateCode: return \"Duplicate Code\";\r\n case IModelStatus.DuplicateName: return \"Duplicate Name\";\r\n case IModelStatus.ElementBlockedChange: return \"Element Blocked Change\";\r\n case IModelStatus.FileAlreadyExists: return \"File Already Exists\";\r\n case IModelStatus.FileNotFound: return \"File Not Found\";\r\n case IModelStatus.FileNotLoaded: return \"File Not Loaded\";\r\n case IModelStatus.ForeignKeyConstraint: return \"ForeignKey Constraint\";\r\n case IModelStatus.IdExists: return \"Id Exists\";\r\n case IModelStatus.InDynamicTransaction: return \"InDynamicTransaction\";\r\n case IModelStatus.InvalidCategory: return \"Invalid Category\";\r\n case IModelStatus.InvalidCode: return \"Invalid Code\";\r\n case IModelStatus.InvalidCodeSpec: return \"Invalid CodeSpec\";\r\n case IModelStatus.InvalidId: return \"Invalid Id\";\r\n case IModelStatus.InvalidName: return \"Invalid Name\";\r\n case IModelStatus.InvalidParent: return \"Invalid Parent\";\r\n case IModelStatus.InvalidProfileVersion: return \"Invalid Profile Version\";\r\n case IModelStatus.IsCreatingChangeSet: return \"IsCreatingChangeSet\";\r\n case IModelStatus.LockNotHeld: return \"Lock Not Held\";\r\n case IModelStatus.Mismatch2d3d: return \"Mismatch 2d3d\";\r\n case IModelStatus.MismatchGcs: return \"Mismatch Gcs\";\r\n case IModelStatus.MissingDomain: return \"Missing Domain\";\r\n case IModelStatus.MissingHandler: return \"Missing Handler\";\r\n case IModelStatus.MissingId: return \"Missing Id\";\r\n case IModelStatus.NoGeometry: return \"No Geometry\";\r\n case IModelStatus.NoMultiTxnOperation: return \"NoMultiTxnOperation\";\r\n case IModelStatus.NotEnabled: return \"Not Enabled\";\r\n case IModelStatus.NotFound: return \"Not Found\";\r\n case IModelStatus.NotOpen: return \"Not Open\";\r\n case IModelStatus.NotOpenForWrite: return \"Not Open For Write\";\r\n case IModelStatus.NotSameUnitBase: return \"Not Same Unit Base\";\r\n case IModelStatus.NothingToRedo: return \"Nothing To Redo\";\r\n case IModelStatus.NothingToUndo: return \"Nothing To Undo\";\r\n case IModelStatus.ParentBlockedChange: return \"Parent Blocked Change\";\r\n case IModelStatus.ReadError: return \"Read Error\";\r\n case IModelStatus.ReadOnly: return \"ReadOnly\";\r\n case IModelStatus.ReadOnlyDomain: return \"ReadOnlyDomain\";\r\n case IModelStatus.RepositoryManagerError: return \"RepositoryManagerError\";\r\n case IModelStatus.SQLiteError: return \"SQLiteError\";\r\n case IModelStatus.TransactionActive: return \"Transaction Active\";\r\n case IModelStatus.UnitsMissing: return \"Units Missing\";\r\n case IModelStatus.UnknownFormat: return \"Unknown Format\";\r\n case IModelStatus.UpgradeFailed: return \"Upgrade Failed\";\r\n case IModelStatus.ValidationFailed: return \"Validation Failed\";\r\n case IModelStatus.VersionTooNew: return \"Version Too New\";\r\n case IModelStatus.VersionTooOld: return \"Version Too Old\";\r\n case IModelStatus.ViewNotFound: return \"View Not Found\";\r\n case IModelStatus.WriteError: return \"Write Error\";\r\n case IModelStatus.WrongClass: return \"Wrong Class\";\r\n case IModelStatus.WrongIModel: return \"Wrong IModel\";\r\n case IModelStatus.WrongDomain: return \"Wrong Domain\";\r\n case IModelStatus.WrongElement: return \"Wrong Element\";\r\n case IModelStatus.WrongHandler: return \"Wrong Handler\";\r\n case IModelStatus.WrongModel: return \"Wrong Model\";\r\n case DbResult.BE_SQLITE_ERROR: return \"BE_SQLITE_ERROR\";\r\n case DbResult.BE_SQLITE_INTERNAL: return \"BE_SQLITE_INTERNAL\";\r\n case DbResult.BE_SQLITE_PERM: return \"BE_SQLITE_PERM\";\r\n case DbResult.BE_SQLITE_ABORT: return \"BE_SQLITE_ABORT\";\r\n case DbResult.BE_SQLITE_BUSY: return \"Db is busy\";\r\n case DbResult.BE_SQLITE_LOCKED: return \"Db is Locked\";\r\n case DbResult.BE_SQLITE_NOMEM: return \"BE_SQLITE_NOMEM\";\r\n case DbResult.BE_SQLITE_READONLY: return \"Readonly\";\r\n case DbResult.BE_SQLITE_INTERRUPT: return \"BE_SQLITE_INTERRUPT\";\r\n case DbResult.BE_SQLITE_IOERR: return \"BE_SQLITE_IOERR\";\r\n case DbResult.BE_SQLITE_CORRUPT: return \"BE_SQLITE_CORRUPT\";\r\n case DbResult.BE_SQLITE_NOTFOUND: return \"Not Found\";\r\n case DbResult.BE_SQLITE_FULL: return \"BE_SQLITE_FULL\";\r\n case DbResult.BE_SQLITE_CANTOPEN: return \"Can't open\";\r\n case DbResult.BE_SQLITE_PROTOCOL: return \"BE_SQLITE_PROTOCOL\";\r\n case DbResult.BE_SQLITE_EMPTY: return \"BE_SQLITE_EMPTY\";\r\n case DbResult.BE_SQLITE_SCHEMA: return \"BE_SQLITE_SCHEMA\";\r\n case DbResult.BE_SQLITE_TOOBIG: return \"BE_SQLITE_TOOBIG\";\r\n case DbResult.BE_SQLITE_MISMATCH: return \"BE_SQLITE_MISMATCH\";\r\n case DbResult.BE_SQLITE_MISUSE: return \"BE_SQLITE_MISUSE\";\r\n case DbResult.BE_SQLITE_NOLFS: return \"BE_SQLITE_NOLFS\";\r\n case DbResult.BE_SQLITE_AUTH: return \"BE_SQLITE_AUTH\";\r\n case DbResult.BE_SQLITE_FORMAT: return \"BE_SQLITE_FORMAT\";\r\n case DbResult.BE_SQLITE_RANGE: return \"BE_SQLITE_RANGE\";\r\n case DbResult.BE_SQLITE_NOTADB: return \"Not a Database\";\r\n case DbResult.BE_SQLITE_IOERR_READ: return \"BE_SQLITE_IOERR_READ\";\r\n case DbResult.BE_SQLITE_IOERR_SHORT_READ: return \"BE_SQLITE_IOERR_SHORT_READ\";\r\n case DbResult.BE_SQLITE_IOERR_WRITE: return \"BE_SQLITE_IOERR_WRITE\";\r\n case DbResult.BE_SQLITE_IOERR_FSYNC: return \"BE_SQLITE_IOERR_FSYNC\";\r\n case DbResult.BE_SQLITE_IOERR_DIR_FSYNC: return \"BE_SQLITE_IOERR_DIR_FSYNC\";\r\n case DbResult.BE_SQLITE_IOERR_TRUNCATE: return \"BE_SQLITE_IOERR_TRUNCATE\";\r\n case DbResult.BE_SQLITE_IOERR_FSTAT: return \"BE_SQLITE_IOERR_FSTAT\";\r\n case DbResult.BE_SQLITE_IOERR_UNLOCK: return \"BE_SQLITE_IOERR_UNLOCK\";\r\n case DbResult.BE_SQLITE_IOERR_RDLOCK: return \"BE_SQLITE_IOERR_RDLOCK\";\r\n case DbResult.BE_SQLITE_IOERR_DELETE: return \"BE_SQLITE_IOERR_DELETE\";\r\n case DbResult.BE_SQLITE_IOERR_BLOCKED: return \"BE_SQLITE_IOERR_BLOCKED\";\r\n case DbResult.BE_SQLITE_IOERR_NOMEM: return \"BE_SQLITE_IOERR_NOMEM\";\r\n case DbResult.BE_SQLITE_IOERR_ACCESS: return \"BE_SQLITE_IOERR_ACCESS\";\r\n case DbResult.BE_SQLITE_IOERR_CHECKRESERVEDLOCK: return \"BE_SQLITE_IOERR_CHECKRESERVEDLOCK\";\r\n case DbResult.BE_SQLITE_IOERR_LOCK: return \"BE_SQLITE_IOERR_LOCK\";\r\n case DbResult.BE_SQLITE_IOERR_CLOSE: return \"BE_SQLITE_IOERR_CLOSE\";\r\n case DbResult.BE_SQLITE_IOERR_DIR_CLOSE: return \"BE_SQLITE_IOERR_DIR_CLOSE\";\r\n case DbResult.BE_SQLITE_IOERR_SHMOPEN: return \"BE_SQLITE_IOERR_SHMOPEN\";\r\n case DbResult.BE_SQLITE_IOERR_SHMSIZE: return \"BE_SQLITE_IOERR_SHMSIZE\";\r\n case DbResult.BE_SQLITE_IOERR_SHMLOCK: return \"BE_SQLITE_IOERR_SHMLOCK\";\r\n case DbResult.BE_SQLITE_IOERR_SHMMAP: return \"BE_SQLITE_IOERR_SHMMAP\";\r\n case DbResult.BE_SQLITE_IOERR_SEEK: return \"BE_SQLITE_IOERR_SEEK\";\r\n case DbResult.BE_SQLITE_IOERR_DELETE_NOENT: return \"BE_SQLITE_IOERR_DELETE_NOENT\";\r\n case DbResult.BE_SQLITE_ERROR_FileExists: return \"File Exists\";\r\n case DbResult.BE_SQLITE_ERROR_AlreadyOpen: return \"Already Open\";\r\n case DbResult.BE_SQLITE_ERROR_NoPropertyTable: return \"No Property Table\";\r\n case DbResult.BE_SQLITE_ERROR_FileNotFound: return \"File Not Found\";\r\n case DbResult.BE_SQLITE_ERROR_NoTxnActive: return \"No Txn Active\";\r\n case DbResult.BE_SQLITE_ERROR_BadDbProfile: return \"Bad Db Profile\";\r\n case DbResult.BE_SQLITE_ERROR_InvalidProfileVersion: return \"Invalid Profile Version\";\r\n case DbResult.BE_SQLITE_ERROR_ProfileUpgradeFailed: return \"Profile Upgrade Failed\";\r\n case DbResult.BE_SQLITE_ERROR_ProfileTooOldForReadWrite: return \"Profile Too Old For ReadWrite\";\r\n case DbResult.BE_SQLITE_ERROR_ProfileTooOld: return \"Profile Too Old\";\r\n case DbResult.BE_SQLITE_ERROR_ProfileTooNewForReadWrite: return \"Profile Too New For ReadWrite\";\r\n case DbResult.BE_SQLITE_ERROR_ProfileTooNew: return \"Profile Too New\";\r\n case DbResult.BE_SQLITE_ERROR_ChangeTrackError: return \"ChangeTrack Error\";\r\n case DbResult.BE_SQLITE_ERROR_InvalidChangeSetVersion: return \"Invalid ChangeSet Version\";\r\n case DbResult.BE_SQLITE_ERROR_SchemaUpgradeRequired: return \"Schema Upgrade Required\";\r\n case DbResult.BE_SQLITE_ERROR_SchemaTooNew: return \"Schema Too New\";\r\n case DbResult.BE_SQLITE_ERROR_SchemaTooOld: return \"Schema Too Old\";\r\n case DbResult.BE_SQLITE_ERROR_SchemaLockFailed: return \"Schema Lock Failed\";\r\n case DbResult.BE_SQLITE_ERROR_SchemaUpgradeFailed: return \"Schema Upgrade Failed\";\r\n case DbResult.BE_SQLITE_ERROR_SchemaImportFailed: return \"Schema Import Failed\";\r\n case DbResult.BE_SQLITE_ERROR_CouldNotAcquireLocksOrCodes: return \"Could Not Acquire Locks Or Codes\";\r\n case DbResult.BE_SQLITE_ERROR_SchemaUpgradeRecommended: return \"Recommended that the schemas found in the database be upgraded\";\r\n case DbResult.BE_SQLITE_LOCKED_SHAREDCACHE: return \"BE_SQLITE_LOCKED_SHAREDCACHE\";\r\n case DbResult.BE_SQLITE_BUSY_RECOVERY: return \"BE_SQLITE_BUSY_RECOVERY\";\r\n case DbResult.BE_SQLITE_CANTOPEN_NOTEMPDIR: return \"SQLite No Temp Dir\";\r\n case DbResult.BE_SQLITE_CANTOPEN_ISDIR: return \"BE_SQLITE_CANTOPEN_ISDIR\";\r\n case DbResult.BE_SQLITE_CANTOPEN_FULLPATH: return \"BE_SQLITE_CANTOPEN_FULLPATH\";\r\n case DbResult.BE_SQLITE_CORRUPT_VTAB: return \"BE_SQLITE_CORRUPT_VTAB\";\r\n case DbResult.BE_SQLITE_READONLY_RECOVERY: return \"BE_SQLITE_READONLY_RECOVERY\";\r\n case DbResult.BE_SQLITE_READONLY_CANTLOCK: return \"BE_SQLITE_READONLY_CANTLOCK\";\r\n case DbResult.BE_SQLITE_READONLY_ROLLBACK: return \"BE_SQLITE_READONLY_ROLLBACK\";\r\n case DbResult.BE_SQLITE_ABORT_ROLLBACK: return \"BE_SQLITE_ABORT_ROLLBACK\";\r\n case DbResult.BE_SQLITE_CONSTRAINT_CHECK: return \"BE_SQLITE_CONSTRAINT_CHECK\";\r\n case DbResult.BE_SQLITE_CONSTRAINT_COMMITHOOK: return \"CommitHook Constraint Error\";\r\n case DbResult.BE_SQLITE_CONSTRAINT_FOREIGNKEY: return \"Foreign Key Constraint Error\";\r\n case DbResult.BE_SQLITE_CONSTRAINT_FUNCTION: return \"Function Constraint Error\";\r\n case DbResult.BE_SQLITE_CONSTRAINT_NOTNULL: return \"NotNull Constraint Error\";\r\n case DbResult.BE_SQLITE_CONSTRAINT_PRIMARYKEY: return \"Primary Key Constraint Error\";\r\n case DbResult.BE_SQLITE_CONSTRAINT_TRIGGER: return \"Trigger Constraint Error\";\r\n case DbResult.BE_SQLITE_CONSTRAINT_UNIQUE: return \"Unique Constraint Error\";\r\n case DbResult.BE_SQLITE_CONSTRAINT_VTAB: return \"VTable Constraint Error\";\r\n case BentleyStatus.ERROR: return \"Error\";\r\n case BriefcaseStatus.CannotAcquire: return \"CannotAcquire\";\r\n case BriefcaseStatus.CannotDownload: return \"CannotDownload\";\r\n case BriefcaseStatus.CannotCopy: return \"CannotCopy\";\r\n case BriefcaseStatus.CannotDelete: return \"CannotDelete\";\r\n case BriefcaseStatus.VersionNotFound: return \"VersionNotFound\";\r\n case BriefcaseStatus.DownloadCancelled: return \"DownloadCancelled\";\r\n case BriefcaseStatus.ContainsDeletedChangeSets: return \"ContainsDeletedChangeSets\";\r\n case RpcInterfaceStatus.IncompatibleVersion: return \"RpcInterfaceStatus.IncompatibleVersion\";\r\n case ChangeSetStatus.ApplyError: return \"Error applying a change set\";\r\n case ChangeSetStatus.ChangeTrackingNotEnabled: return \"Change tracking has not been enabled. The ChangeSet API mandates this\";\r\n case ChangeSetStatus.CorruptedChangeStream: return \"Contents of the change stream are corrupted and does not match the ChangeSet\";\r\n case ChangeSetStatus.FileNotFound: return \"File containing the changes was not found\";\r\n case ChangeSetStatus.FileWriteError: return \"Error writing the contents of the change set to the backing change stream file\";\r\n case ChangeSetStatus.HasLocalChanges: return \"Cannot perform the operation since the Db has local changes\";\r\n case ChangeSetStatus.HasUncommittedChanges: return \"Cannot perform the operation since current transaction has uncommitted changes\";\r\n case ChangeSetStatus.InvalidId: return \"Invalid ChangeSet Id\";\r\n case ChangeSetStatus.InvalidVersion: return \"Invalid version of the change set\";\r\n case ChangeSetStatus.InDynamicTransaction: return \"Cannot perform the operation since system is in the middle of a dynamic transaction\";\r\n case ChangeSetStatus.IsCreatingChangeSet: return \"Cannot perform operation since system is in the middle of a creating a change set\";\r\n case ChangeSetStatus.IsNotCreatingChangeSet: return \"Cannot perform operation since the system is not creating a change set\";\r\n case ChangeSetStatus.MergePropagationError: return \"Error propagating the changes after the merge\";\r\n case ChangeSetStatus.NothingToMerge: return \"No change sets to merge\";\r\n case ChangeSetStatus.NoTransactions: return \"No transactions are available to create a change set\";\r\n case ChangeSetStatus.ParentMismatch: return \"Parent change set of the Db does not match the parent id of the change set\";\r\n case ChangeSetStatus.SQLiteError: return \"Error performing a SQLite operation on the Db\";\r\n case ChangeSetStatus.WrongDgnDb: return \"ChangeSet originated in a different Db\";\r\n case ChangeSetStatus.CouldNotOpenDgnDb: return \"Could not open the DgnDb to merge change set\";\r\n case ChangeSetStatus.MergeSchemaChangesOnOpen: return \"Cannot merge changes in in an open DgnDb. Close the DgnDb, and process the operation when it is opened\";\r\n case ChangeSetStatus.ReverseOrReinstateSchemaChanges: return \"Cannot reverse or reinstate schema changes.\";\r\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\";\r\n case ChangeSetStatus.CannotMergeIntoReadonly: return \"Cannot merge changes into a Readonly DgnDb\";\r\n case ChangeSetStatus.CannotMergeIntoMaster: return \"Cannot merge changes into a Master DgnDb\";\r\n case ChangeSetStatus.CannotMergeIntoReversed: return \"Cannot merge changes into a DgnDb that has reversed change sets\";\r\n case ChangeSetStatus.DownloadCancelled: return \"ChangeSet(s) download was cancelled.\";\r\n case RepositoryStatus.ServerUnavailable: return \"ServerUnavailable\";\r\n case RepositoryStatus.LockAlreadyHeld: return \"LockAlreadyHeld\";\r\n case RepositoryStatus.SyncError: return \"SyncError\";\r\n case RepositoryStatus.InvalidResponse: return \"InvalidResponse\";\r\n case RepositoryStatus.PendingTransactions: return \"PendingTransactions\";\r\n case RepositoryStatus.LockUsed: return \"LockUsed\";\r\n case RepositoryStatus.CannotCreateChangeSet: return \"CannotCreateChangeSet\";\r\n case RepositoryStatus.InvalidRequest: return \"InvalidRequest\";\r\n case RepositoryStatus.ChangeSetRequired: return \"ChangeSetRequired\";\r\n case RepositoryStatus.CodeUnavailable: return \"CodeUnavailable\";\r\n case RepositoryStatus.CodeNotReserved: return \"CodeNotReserved\";\r\n case RepositoryStatus.CodeUsed: return \"CodeUsed\";\r\n case RepositoryStatus.LockNotHeld: return \"LockNotHeld\";\r\n case RepositoryStatus.RepositoryIsLocked: return \"RepositoryIsLocked\";\r\n case RepositoryStatus.ChannelConstraintViolation: return \"ChannelConstraintViolation\";\r\n case HttpStatus.Info: return \"HTTP Info\";\r\n case HttpStatus.Redirection: return \"HTTP Redirection\";\r\n case HttpStatus.ClientError: return \"HTTP Client error\";\r\n case HttpStatus.ServerError: return \"HTTP Server error\";\r\n case IModelHubStatus.Unknown: return \"Unknown error\";\r\n case IModelHubStatus.MissingRequiredProperties: return \"Missing required properties\";\r\n case IModelHubStatus.InvalidPropertiesValues: return \"Invalid properties values\";\r\n case IModelHubStatus.UserDoesNotHavePermission: return \"User does not have permission\";\r\n case IModelHubStatus.UserDoesNotHaveAccess: return \"User does not have access\";\r\n case IModelHubStatus.InvalidBriefcase: return \"Invalid briefcase\";\r\n case IModelHubStatus.BriefcaseDoesNotExist: return \"Briefcase does not exist\";\r\n case IModelHubStatus.BriefcaseDoesNotBelongToUser: return \"Briefcase does not belong to user\";\r\n case IModelHubStatus.AnotherUserPushing: return \"Another user pushing\";\r\n case IModelHubStatus.ChangeSetAlreadyExists: return \"ChangeSet already exists\";\r\n case IModelHubStatus.ChangeSetDoesNotExist: return \"ChangeSet does not exist\";\r\n case IModelHubStatus.FileIsNotUploaded: return \"File is not uploaded\";\r\n case IModelHubStatus.iModelIsNotInitialized: return \"iModel is not initialized\";\r\n case IModelHubStatus.ChangeSetPointsToBadSeed: return \"ChangeSet points to a bad seed file\";\r\n case IModelHubStatus.OperationFailed: return \"iModelHub operation has failed\";\r\n case IModelHubStatus.PullIsRequired: return \"Pull is required\";\r\n case IModelHubStatus.MaximumNumberOfBriefcasesPerUser: return \"Limit of briefcases per user was reached\";\r\n case IModelHubStatus.MaximumNumberOfBriefcasesPerUserPerMinute: return \"Limit of briefcases per user per minute was reached\";\r\n case IModelHubStatus.DatabaseTemporarilyLocked: return \"Database is temporarily locked\";\r\n case IModelHubStatus.iModelIsLocked: return \"iModel is locked\";\r\n case IModelHubStatus.CodesExist: return \"Code already exists\";\r\n case IModelHubStatus.LocksExist: return \"Lock already exists\";\r\n case IModelHubStatus.iModelAlreadyExists: return \"iModel already exists\";\r\n case IModelHubStatus.iModelDoesNotExist: return \"iModel does not exist\";\r\n case IModelHubStatus.LockDoesNotExist: return \"Lock does not exist\";\r\n case IModelHubStatus.LockChunkDoesNotExist: return \"Lock chunk does not exist\";\r\n case IModelHubStatus.LockOwnedByAnotherBriefcase: return \"Lock is owned by another briefcase\";\r\n case IModelHubStatus.CodeStateInvalid: return \"Code state is invalid\";\r\n case IModelHubStatus.CodeReservedByAnotherBriefcase: return \"Code is reserved by another briefcase\";\r\n case IModelHubStatus.CodeDoesNotExist: return \"Code does not exist\";\r\n case IModelHubStatus.FileDoesNotExist: return \"File does not exist\";\r\n case IModelHubStatus.FileAlreadyExists: return \"File already exists\";\r\n case IModelHubStatus.EventTypeDoesNotExist: return \"Event type does not exist\";\r\n case IModelHubStatus.EventSubscriptionDoesNotExist: return \"Event subscription does not exist\";\r\n case IModelHubStatus.EventSubscriptionAlreadyExists: return \"Event subscription already exists\";\r\n case IModelHubStatus.ITwinIdIsNotSpecified: return \"ITwin Id is not specified\";\r\n case IModelHubStatus.FailedToGetITwinPermissions: return \"Failed to get iTwin permissions\";\r\n case IModelHubStatus.FailedToGetITwinMembers: return \"Failed to get iTwin members\";\r\n case IModelHubStatus.FailedToGetAssetPermissions: return \"Failed to get asset permissions\";\r\n case IModelHubStatus.FailedToGetAssetMembers: return \"Failed to get asset members\";\r\n case IModelHubStatus.ChangeSetAlreadyHasVersion: return \"ChangeSet already has version\";\r\n case IModelHubStatus.VersionAlreadyExists: return \"Version already exists\";\r\n case IModelHubStatus.JobSchedulingFailed: return \"Failed to schedule a background job\";\r\n case IModelHubStatus.ConflictsAggregate: return \"Codes or locks are owned by another briefcase\";\r\n case IModelHubStatus.FailedToGetITwinById: return \"Failed to query iTwin by its id\";\r\n case IModelHubStatus.DatabaseOperationFailed: return \"Database operation has failed\";\r\n case IModelHubStatus.ITwinDoesNotExist: return \"ITwin does not exist\";\r\n case IModelHubStatus.UndefinedArgumentError: return \"Undefined argument\";\r\n case IModelHubStatus.InvalidArgumentError: return \"Invalid argument\";\r\n case IModelHubStatus.MissingDownloadUrlError: return \"Missing download url\";\r\n case IModelHubStatus.NotSupportedInBrowser: return \"Not supported in browser\";\r\n case IModelHubStatus.FileHandlerNotSet: return \"File handler is not set\";\r\n case IModelHubStatus.FileNotFound: return \"File not found\";\r\n case GeoServiceStatus.NoGeoLocation: return \"No GeoLocation\";\r\n case GeoServiceStatus.OutOfUsefulRange: return \"Out of useful range\";\r\n case GeoServiceStatus.OutOfMathematicalDomain: return \"Out of mathematical domain\";\r\n case GeoServiceStatus.NoDatumConverter: return \"No datum converter\";\r\n case GeoServiceStatus.VerticalDatumConvertError: return \"Vertical datum convert error\";\r\n case GeoServiceStatus.CSMapError: return \"CSMap error\";\r\n case GeoServiceStatus.Pending: return \"Pending\";\r\n case RealityDataStatus.InvalidData: return \"Invalid or unknown data\";\r\n case IModelStatus.Success:\r\n case DbResult.BE_SQLITE_OK:\r\n case DbResult.BE_SQLITE_ROW:\r\n case DbResult.BE_SQLITE_DONE:\r\n case BentleyStatus.SUCCESS:\r\n return \"Success\";\r\n\r\n default:\r\n return `Error (${this.errorNumber})`;\r\n }\r\n }\r\n\r\n /** Use run-time type checking to safely get a useful string summary of an unknown error value, or `\"\"` if none exists.\r\n * @note It's recommended to use this function in `catch` clauses, where a caught value cannot be assumed to be `instanceof Error`\r\n * @public\r\n */\r\n public static getErrorMessage(error: unknown): string {\r\n if (typeof error === \"string\")\r\n return error;\r\n\r\n if (error instanceof Error)\r\n return error.toString();\r\n\r\n if (isObject(error)) {\r\n if (typeof error.message === \"string\")\r\n return error.message;\r\n\r\n if (typeof error.msg === \"string\")\r\n return error.msg;\r\n\r\n if (error.toString() !== \"[object Object]\")\r\n return error.toString();\r\n }\r\n\r\n return \"\";\r\n }\r\n\r\n /** Use run-time type checking to safely get the call stack of an unknown error value, if possible.\r\n * @note It's recommended to use this function in `catch` clauses, where a caught value cannot be assumed to be `instanceof Error`\r\n * @public\r\n */\r\n public static getErrorStack(error: unknown): string | undefined {\r\n if (isObject(error) && typeof error.stack === \"string\")\r\n return error.stack;\r\n\r\n return undefined;\r\n }\r\n\r\n /** Use run-time type checking to safely get the metadata with an unknown error value, if possible.\r\n * @note It's recommended to use this function in `catch` clauses, where a caught value cannot be assumed to be `instanceof BentleyError`\r\n * @see [[BentleyError.getMetaData]]\r\n * @public\r\n */\r\n public static getErrorMetadata(error: unknown): object | undefined {\r\n if (isObject(error) && typeof error.getMetaData === \"function\") {\r\n const metadata = error.getMetaData();\r\n if (typeof metadata === \"object\" && metadata !== null)\r\n return metadata;\r\n }\r\n\r\n return undefined;\r\n }\r\n\r\n /** Returns a new `ErrorProps` object representing an unknown error value. Useful for logging or wrapping/re-throwing caught errors.\r\n * @note Unlike `Error` objects (which lose messages and call stacks when serialized to JSON), objects\r\n * returned by this are plain old JavaScript objects, and can be easily logged/serialized to JSON.\r\n * @public\r\n */\r\n public static getErrorProps(error: unknown): ErrorProps {\r\n const serialized: ErrorProps = {\r\n message: BentleyError.getErrorMessage(error),\r\n };\r\n\r\n const stack = BentleyError.getErrorStack(error);\r\n if (stack)\r\n serialized.stack = stack;\r\n\r\n const metadata = BentleyError.getErrorMetadata(error);\r\n if (metadata)\r\n serialized.metadata = metadata;\r\n\r\n return serialized;\r\n }\r\n}\r\n\r\n"]}
1
+ {"version":3,"file":"BentleyError.js","sourceRoot":"","sources":["../../src/BentleyError.ts"],"names":[],"mappings":";AAAA;;;+FAG+F;AAC/F;;GAEG;;;AAEH,yCAAsC;AAEtC;;;;;GAKG;AACH,IAAY,aAGX;AAHD,WAAY,aAAa;IACvB,uDAAgB,CAAA;IAChB,uDAAc,CAAA;AAChB,CAAC,EAHW,aAAa,GAAb,qBAAa,KAAb,qBAAa,QAGxB;AAED;;;GAGG;AACH,IAAY,YAyEX;AAzED,WAAY,YAAY;IACtB,6EAA2B,CAAA;IAC3B,qDAAW,CAAA;IACX,qEAAqC,CAAA;IACrC,iEAAmC,CAAA;IACnC,uDAA8B,CAAA;IAC9B,+DAAkC,CAAA;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;YACV,UAAU,CAAC,QAAQ,GAAG,QAAQ,CAAC;QAEjC,OAAO,UAAU,CAAC;IACpB,CAAC;CACF;AA/XD,oCA+XC","sourcesContent":["/*---------------------------------------------------------------------------------------------\r\n* Copyright (c) Bentley Systems, Incorporated. All rights reserved.\r\n* See LICENSE.md in the project root for license terms and full copyright notice.\r\n*--------------------------------------------------------------------------------------------*/\r\n/** @packageDocumentation\r\n * @module Errors\r\n */\r\n\r\nimport { DbResult } from \"./BeSQLite\";\r\n\r\n/** Standard status code.\r\n * This status code should be rarely used.\r\n * Prefer to throw an exception to indicate an error, rather than returning a special status code.\r\n * If a status code is to be returned, prefer to return a more specific error status type such as IModelStatus or DbResult.\r\n * @public\r\n */\r\nexport enum BentleyStatus {\r\n SUCCESS = 0x0000,\r\n ERROR = 0x8000,\r\n}\r\n\r\n/** Status codes that are used in conjunction with [[BentleyError]].\r\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.\r\n * @public\r\n */\r\nexport enum IModelStatus {\r\n IMODEL_ERROR_BASE = 0x10000,\r\n Success = 0,\r\n AlreadyLoaded = IMODEL_ERROR_BASE + 1,\r\n AlreadyOpen = IMODEL_ERROR_BASE + 2,\r\n BadArg = IMODEL_ERROR_BASE + 3,\r\n BadElement = IMODEL_ERROR_BASE + 4,\r\n BadModel = IMODEL_ERROR_BASE + 5,\r\n BadRequest = IMODEL_ERROR_BASE + 6,\r\n BadSchema = IMODEL_ERROR_BASE + 7,\r\n CannotUndo = IMODEL_ERROR_BASE + 8,\r\n CodeNotReserved = IMODEL_ERROR_BASE + 9,\r\n DeletionProhibited = IMODEL_ERROR_BASE + 10,\r\n DuplicateCode = IMODEL_ERROR_BASE + 11,\r\n DuplicateName = IMODEL_ERROR_BASE + 12,\r\n ElementBlockedChange = IMODEL_ERROR_BASE + 13,\r\n FileAlreadyExists = IMODEL_ERROR_BASE + 14,\r\n FileNotFound = IMODEL_ERROR_BASE + 15,\r\n FileNotLoaded = IMODEL_ERROR_BASE + 16,\r\n ForeignKeyConstraint = IMODEL_ERROR_BASE + 17,\r\n IdExists = IMODEL_ERROR_BASE + 18,\r\n InDynamicTransaction = IMODEL_ERROR_BASE + 19,\r\n InvalidCategory = IMODEL_ERROR_BASE + 20,\r\n InvalidCode = IMODEL_ERROR_BASE + 21,\r\n InvalidCodeSpec = IMODEL_ERROR_BASE + 22,\r\n InvalidId = IMODEL_ERROR_BASE + 23,\r\n InvalidName = IMODEL_ERROR_BASE + 24,\r\n InvalidParent = IMODEL_ERROR_BASE + 25,\r\n InvalidProfileVersion = IMODEL_ERROR_BASE + 26,\r\n IsCreatingChangeSet = IMODEL_ERROR_BASE + 27,\r\n LockNotHeld = IMODEL_ERROR_BASE + 28,\r\n Mismatch2d3d = IMODEL_ERROR_BASE + 29,\r\n MismatchGcs = IMODEL_ERROR_BASE + 30,\r\n MissingDomain = IMODEL_ERROR_BASE + 31,\r\n MissingHandler = IMODEL_ERROR_BASE + 32,\r\n MissingId = IMODEL_ERROR_BASE + 33,\r\n NoGeometry = IMODEL_ERROR_BASE + 34,\r\n NoMultiTxnOperation = IMODEL_ERROR_BASE + 35,\r\n NotEnabled = IMODEL_ERROR_BASE + 37,\r\n NotFound = IMODEL_ERROR_BASE + 38,\r\n NotOpen = IMODEL_ERROR_BASE + 39,\r\n NotOpenForWrite = IMODEL_ERROR_BASE + 40,\r\n NotSameUnitBase = IMODEL_ERROR_BASE + 41,\r\n NothingToRedo = IMODEL_ERROR_BASE + 42,\r\n NothingToUndo = IMODEL_ERROR_BASE + 43,\r\n ParentBlockedChange = IMODEL_ERROR_BASE + 44,\r\n ReadError = IMODEL_ERROR_BASE + 45,\r\n ReadOnly = IMODEL_ERROR_BASE + 46,\r\n ReadOnlyDomain = IMODEL_ERROR_BASE + 47,\r\n RepositoryManagerError = IMODEL_ERROR_BASE + 48,\r\n SQLiteError = IMODEL_ERROR_BASE + 49,\r\n TransactionActive = IMODEL_ERROR_BASE + 50,\r\n UnitsMissing = IMODEL_ERROR_BASE + 51,\r\n UnknownFormat = IMODEL_ERROR_BASE + 52,\r\n UpgradeFailed = IMODEL_ERROR_BASE + 53,\r\n ValidationFailed = IMODEL_ERROR_BASE + 54,\r\n VersionTooNew = IMODEL_ERROR_BASE + 55,\r\n VersionTooOld = IMODEL_ERROR_BASE + 56,\r\n ViewNotFound = IMODEL_ERROR_BASE + 57,\r\n WriteError = IMODEL_ERROR_BASE + 58,\r\n WrongClass = IMODEL_ERROR_BASE + 59,\r\n WrongIModel = IMODEL_ERROR_BASE + 60,\r\n WrongDomain = IMODEL_ERROR_BASE + 61,\r\n WrongElement = IMODEL_ERROR_BASE + 62,\r\n WrongHandler = IMODEL_ERROR_BASE + 63,\r\n WrongModel = IMODEL_ERROR_BASE + 64,\r\n ConstraintNotUnique = IMODEL_ERROR_BASE + 65,\r\n NoGeoLocation = IMODEL_ERROR_BASE + 66,\r\n ServerTimeout = IMODEL_ERROR_BASE + 67,\r\n NoContent = IMODEL_ERROR_BASE + 68,\r\n NotRegistered = IMODEL_ERROR_BASE + 69,\r\n FunctionNotFound = IMODEL_ERROR_BASE + 70,\r\n NoActiveCommand = IMODEL_ERROR_BASE + 71,\r\n}\r\n\r\n/** Error statuses produced by various briefcase operations, typically encountered as the `errorNumber` of an [IModelError]($common).\r\n * @public\r\n */\r\nexport enum BriefcaseStatus {\r\n BRIEFCASE_STATUS_BASE = 0x20000,\r\n CannotAcquire = BRIEFCASE_STATUS_BASE,\r\n CannotDownload = BRIEFCASE_STATUS_BASE + 1,\r\n CannotUpload = BRIEFCASE_STATUS_BASE + 2,\r\n CannotCopy = BRIEFCASE_STATUS_BASE + 3,\r\n CannotDelete = BRIEFCASE_STATUS_BASE + 4,\r\n VersionNotFound = BRIEFCASE_STATUS_BASE + 5,\r\n CannotApplyChanges = BRIEFCASE_STATUS_BASE + 6,\r\n DownloadCancelled = BRIEFCASE_STATUS_BASE + 7,\r\n ContainsDeletedChangeSets = BRIEFCASE_STATUS_BASE + 8,\r\n}\r\n\r\n/** RpcInterface status codes\r\n * @beta\r\n */\r\nexport enum RpcInterfaceStatus {\r\n Success = 0,\r\n RPC_INTERFACE_ERROR_BASE = 0x21000,\r\n /** The RpcInterface implemented by the server is incompatible with the interface requested by the client. */\r\n IncompatibleVersion = RPC_INTERFACE_ERROR_BASE,\r\n}\r\n\r\n/** Error statuses produced by various Changeset operations, typically encountered as the `errorNumber` of an [IModelError]($common).\r\n * @public\r\n */\r\nexport enum ChangeSetStatus { // Note: Values must be kept in sync with ChangeSetStatus in DgnPlatform\r\n Success = 0,\r\n CHANGESET_ERROR_BASE = 0x16000,\r\n /** Error applying a change set when reversing or reinstating it */\r\n ApplyError = CHANGESET_ERROR_BASE + 1,\r\n /** Change tracking has not been enabled. The ChangeSet API mandates this. */\r\n ChangeTrackingNotEnabled = CHANGESET_ERROR_BASE + 2,\r\n /** Contents of the change stream are corrupted and does not match the ChangeSet */\r\n CorruptedChangeStream = CHANGESET_ERROR_BASE + 3,\r\n /** File containing the changes to the change set is not found */\r\n FileNotFound = CHANGESET_ERROR_BASE + 4,\r\n /** Error writing the contents of the change set to the backing change stream file */\r\n FileWriteError = CHANGESET_ERROR_BASE + 5,\r\n /** Cannot perform the operation since the Db has local changes */\r\n HasLocalChanges = CHANGESET_ERROR_BASE + 6,\r\n /** Cannot perform the operation since current transaction has uncommitted changes */\r\n HasUncommittedChanges = CHANGESET_ERROR_BASE + 7,\r\n /** Invalid ChangeSet Id */\r\n InvalidId = CHANGESET_ERROR_BASE + 8,\r\n /** Invalid version of the change set */\r\n InvalidVersion = CHANGESET_ERROR_BASE + 9,\r\n /** Cannot perform the operation since system is in the middle of a dynamic transaction */\r\n InDynamicTransaction = CHANGESET_ERROR_BASE + 10,\r\n /** Cannot perform operation since system is in the middle of a creating a change set */\r\n IsCreatingChangeSet = CHANGESET_ERROR_BASE + 11,\r\n /** Cannot perform operation since the system is not creating a change set */\r\n IsNotCreatingChangeSet = CHANGESET_ERROR_BASE + 12,\r\n /** Error propagating the changes after the merge */\r\n MergePropagationError = CHANGESET_ERROR_BASE + 13,\r\n /** No change sets to merge */\r\n NothingToMerge = CHANGESET_ERROR_BASE + 14,\r\n /** No transactions are available to create a change set */\r\n NoTransactions = CHANGESET_ERROR_BASE + 15,\r\n /** Parent change set of the Db does not match the parent id of the change set */\r\n ParentMismatch = CHANGESET_ERROR_BASE + 16,\r\n /** Error performing a SQLite operation on the Db */\r\n SQLiteError = CHANGESET_ERROR_BASE + 17,\r\n /** ChangeSet originated in a different Db */\r\n WrongDgnDb = CHANGESET_ERROR_BASE + 18,\r\n /** Could not open the DgnDb to merge change set */\r\n CouldNotOpenDgnDb = CHANGESET_ERROR_BASE + 19,\r\n /** Cannot merge changes in in an open DgnDb. Close the DgnDb, and process the operation when it is opened. */\r\n MergeSchemaChangesOnOpen = CHANGESET_ERROR_BASE + 20,\r\n /** Cannot reverse or reinstate schema changes. */\r\n ReverseOrReinstateSchemaChanges = CHANGESET_ERROR_BASE + 21,\r\n /** Cannot process changes schema changes in an open DgnDb. Close the DgnDb, and process the operation when it is opened. */\r\n ProcessSchemaChangesOnOpen = CHANGESET_ERROR_BASE + 22,\r\n /** Cannot merge changes into a Readonly DgnDb. */\r\n CannotMergeIntoReadonly = CHANGESET_ERROR_BASE + 23,\r\n /** Cannot merge changes into a Master DgnDb. */\r\n CannotMergeIntoMaster = CHANGESET_ERROR_BASE + 24,\r\n /** Cannot merge changes into a DgnDb that has reversed change sets. */\r\n CannotMergeIntoReversed = CHANGESET_ERROR_BASE + 25,\r\n /** ChangeSet(s) download was cancelled. */\r\n DownloadCancelled = CHANGESET_ERROR_BASE + 26,\r\n}\r\n\r\n/** Return codes for methods which perform repository management operations\r\n * @internal\r\n */\r\nexport enum RepositoryStatus {\r\n Success = 0,\r\n /** The repository server did not respond to a request */\r\n ServerUnavailable = 0x15001,\r\n /** A requested lock was already held by another briefcase */\r\n LockAlreadyHeld = 0x15002,\r\n /** Failed to sync briefcase manager with server */\r\n SyncError = 0x15003,\r\n /** Response from server not understood */\r\n InvalidResponse = 0x15004,\r\n /** An operation requires local changes to be committed or abandoned */\r\n PendingTransactions = 0x15005,\r\n /** A lock cannot be relinquished because the associated object has been modified */\r\n LockUsed = 0x15006,\r\n /** An operation required creation of a ChangeSet, which failed */\r\n CannotCreateChangeSet = 0x15007,\r\n /** Request to server not understood */\r\n InvalidRequest = 0x15008,\r\n /** A change set committed to the server must be integrated into the briefcase before the operation can be completed */\r\n ChangeSetRequired = 0x15009,\r\n /** A requested DgnCode is reserved by another briefcase or in use */\r\n CodeUnavailable = 0x1500A,\r\n /** A DgnCode cannot be released because it has not been reserved by the requesting briefcase */\r\n CodeNotReserved = 0x1500B,\r\n /** A DgnCode cannot be relinquished because it has been used locally */\r\n CodeUsed = 0x1500C,\r\n /** A required lock is not held by this briefcase */\r\n LockNotHeld = 0x1500D,\r\n /** Repository is currently locked, no changes allowed */\r\n RepositoryIsLocked = 0x1500E,\r\n /** Channel write constraint violation, such as an attempt to write outside the designated channel. */\r\n ChannelConstraintViolation = 0x1500F,\r\n}\r\n\r\n/** Status from returned HTTP status code\r\n * @beta\r\n */\r\nexport enum HttpStatus {\r\n /** 2xx Success */\r\n Success = 0,\r\n /** 1xx Informational responses */\r\n Info = 0x17001,\r\n /** 3xx Redirection */\r\n Redirection = 0x17002,\r\n /** 4xx Client errors */\r\n ClientError = 0x17003,\r\n /** 5xx Server errors */\r\n ServerError = 0x17004,\r\n}\r\n\r\n/** Statuses produced by APIs that interact with iModelHub, typically encountered as the `errorNumber` of an [IModelError]($common).\r\n * @public\r\n */\r\nexport enum IModelHubStatus {\r\n Success = 0,\r\n IMODELHUBERROR_BASE = 0x19000,\r\n IMODELHUBERROR_REQUESTERRORBASE = 0x19100,\r\n Unknown = IMODELHUBERROR_BASE + 1,\r\n MissingRequiredProperties = IMODELHUBERROR_BASE + 2,\r\n InvalidPropertiesValues = IMODELHUBERROR_BASE + 3,\r\n UserDoesNotHavePermission = IMODELHUBERROR_BASE + 4,\r\n UserDoesNotHaveAccess = IMODELHUBERROR_BASE + 5,\r\n InvalidBriefcase = IMODELHUBERROR_BASE + 6,\r\n BriefcaseDoesNotExist = IMODELHUBERROR_BASE + 7,\r\n BriefcaseDoesNotBelongToUser = IMODELHUBERROR_BASE + 8,\r\n AnotherUserPushing = IMODELHUBERROR_BASE + 9,\r\n ChangeSetAlreadyExists = IMODELHUBERROR_BASE + 10,\r\n ChangeSetDoesNotExist = IMODELHUBERROR_BASE + 11,\r\n FileIsNotUploaded = IMODELHUBERROR_BASE + 12,\r\n iModelIsNotInitialized = IMODELHUBERROR_BASE + 13,\r\n ChangeSetPointsToBadSeed = IMODELHUBERROR_BASE + 14,\r\n OperationFailed = IMODELHUBERROR_BASE + 15,\r\n PullIsRequired = IMODELHUBERROR_BASE + 16,\r\n MaximumNumberOfBriefcasesPerUser = IMODELHUBERROR_BASE + 17,\r\n MaximumNumberOfBriefcasesPerUserPerMinute = IMODELHUBERROR_BASE + 18,\r\n DatabaseTemporarilyLocked = IMODELHUBERROR_BASE + 19,\r\n iModelIsLocked = IMODELHUBERROR_BASE + 20,\r\n CodesExist = IMODELHUBERROR_BASE + 21,\r\n LocksExist = IMODELHUBERROR_BASE + 22,\r\n iModelAlreadyExists = IMODELHUBERROR_BASE + 23,\r\n iModelDoesNotExist = IMODELHUBERROR_BASE + 24,\r\n FileDoesNotExist = IMODELHUBERROR_BASE + 25,\r\n FileAlreadyExists = IMODELHUBERROR_BASE + 26,\r\n LockDoesNotExist = IMODELHUBERROR_BASE + 27,\r\n LockOwnedByAnotherBriefcase = IMODELHUBERROR_BASE + 28,\r\n CodeStateInvalid = IMODELHUBERROR_BASE + 29,\r\n CodeReservedByAnotherBriefcase = IMODELHUBERROR_BASE + 30,\r\n CodeDoesNotExist = IMODELHUBERROR_BASE + 31,\r\n EventTypeDoesNotExist = IMODELHUBERROR_BASE + 32,\r\n EventSubscriptionDoesNotExist = IMODELHUBERROR_BASE + 33,\r\n EventSubscriptionAlreadyExists = IMODELHUBERROR_BASE + 34,\r\n ITwinIdIsNotSpecified = IMODELHUBERROR_BASE + 35,\r\n FailedToGetITwinPermissions = IMODELHUBERROR_BASE + 36,\r\n FailedToGetITwinMembers = IMODELHUBERROR_BASE + 37,\r\n ChangeSetAlreadyHasVersion = IMODELHUBERROR_BASE + 38,\r\n VersionAlreadyExists = IMODELHUBERROR_BASE + 39,\r\n JobSchedulingFailed = IMODELHUBERROR_BASE + 40,\r\n ConflictsAggregate = IMODELHUBERROR_BASE + 41,\r\n FailedToGetITwinById = IMODELHUBERROR_BASE + 42,\r\n\r\n DatabaseOperationFailed = IMODELHUBERROR_BASE + 43,\r\n SeedFileInitializationFailed = IMODELHUBERROR_BASE + 44,\r\n\r\n FailedToGetAssetPermissions = IMODELHUBERROR_BASE + 45,\r\n FailedToGetAssetMembers = IMODELHUBERROR_BASE + 46,\r\n ITwinDoesNotExist = IMODELHUBERROR_BASE + 47,\r\n\r\n LockChunkDoesNotExist = IMODELHUBERROR_BASE + 49,\r\n\r\n CheckpointAlreadyExists = IMODELHUBERROR_BASE + 50,\r\n CheckpointDoesNotExist = IMODELHUBERROR_BASE + 51,\r\n\r\n // Errors that are returned for incorrect iModelHub request.\r\n UndefinedArgumentError = IMODELHUBERROR_REQUESTERRORBASE + 1,\r\n InvalidArgumentError = IMODELHUBERROR_REQUESTERRORBASE + 2,\r\n MissingDownloadUrlError = IMODELHUBERROR_REQUESTERRORBASE + 3,\r\n NotSupportedInBrowser = IMODELHUBERROR_REQUESTERRORBASE + 4,\r\n FileHandlerNotSet = IMODELHUBERROR_REQUESTERRORBASE + 5,\r\n FileNotFound = IMODELHUBERROR_REQUESTERRORBASE + 6,\r\n InitializationTimeout = IMODELHUBERROR_REQUESTERRORBASE + 7,\r\n}\r\n\r\n/** GeoServiceStatus errors\r\n * @public\r\n */\r\nexport enum GeoServiceStatus {\r\n Success = 0,\r\n GEOSERVICESTATUS_BASE = 0x24000,\r\n // Error mapped from 'IModelStatus'\r\n NoGeoLocation = IModelStatus.NoGeoLocation,\r\n // Following errors are mapped from 'GeoCoordStatus'\r\n OutOfUsefulRange = GEOSERVICESTATUS_BASE + 1,\r\n OutOfMathematicalDomain = GEOSERVICESTATUS_BASE + 2,\r\n NoDatumConverter = GEOSERVICESTATUS_BASE + 3,\r\n VerticalDatumConvertError = GEOSERVICESTATUS_BASE + 4,\r\n CSMapError = GEOSERVICESTATUS_BASE + 5,\r\n Pending = GEOSERVICESTATUS_BASE + 6,\r\n}\r\n\r\n/** Error status from various reality data operations\r\n * @alpha\r\n */\r\nexport enum RealityDataStatus {\r\n Success = 0,\r\n REALITYDATA_ERROR_BASE = 0x25000,\r\n InvalidData = REALITYDATA_ERROR_BASE + 1,\r\n}\r\n\r\n/** When you want to associate an explanatory message with an error status value.\r\n * @internal\r\n */\r\nexport interface StatusCodeWithMessage<ErrorCodeType> {\r\n status: ErrorCodeType;\r\n message: string;\r\n}\r\n\r\n/** A function that returns a metadata object for a [[BentleyError]].\r\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.\r\n * @public\r\n */\r\nexport type GetMetaDataFunction = () => object | undefined;\r\n\r\n/** Optional metadata attached to a [[BentleyError]]. May either be an object or a function that returns an object.\r\n * If this exception is logged and metadata is present, the metaData object is attached to the log entry via `JSON.stringify`\r\n * @public\r\n */\r\nexport type LoggingMetaData = GetMetaDataFunction | object | undefined;\r\n\r\nfunction isObject(obj: unknown): obj is { [key: string]: unknown } {\r\n return typeof obj === \"object\" && obj !== null;\r\n}\r\n\r\ninterface ErrorProps {\r\n message: string;\r\n stack?: string;\r\n metadata?: object;\r\n}\r\n\r\n/** Base exception class for iTwin.js exceptions.\r\n * @public\r\n */\r\nexport class BentleyError extends Error {\r\n private readonly _metaData: LoggingMetaData;\r\n\r\n /**\r\n * @param errorNumber The a number that identifies of the problem.\r\n * @param message message that describes the problem (should not be localized).\r\n * @param metaData metaData about the exception.\r\n */\r\n public constructor(public errorNumber: number, message?: string, metaData?: LoggingMetaData) {\r\n super(message);\r\n this.errorNumber = errorNumber;\r\n this._metaData = metaData;\r\n this.name = this._initName();\r\n }\r\n\r\n /** Returns true if this BentleyError includes (optional) metadata. */\r\n public get hasMetaData(): boolean { return undefined !== this._metaData; }\r\n\r\n /** get the meta data associated with this BentleyError, if any. */\r\n public getMetaData(): object | undefined {\r\n return BentleyError.getMetaData(this._metaData);\r\n }\r\n\r\n /** get the metadata object associated with an ExceptionMetaData, if any. */\r\n public static getMetaData(metaData: LoggingMetaData): object | undefined {\r\n return (typeof metaData === \"function\") ? metaData() : metaData;\r\n }\r\n\r\n /** This function returns the name of each error status. Override this method to handle more error status codes. */\r\n protected _initName(): string {\r\n switch (this.errorNumber) {\r\n case IModelStatus.AlreadyLoaded: return \"Already Loaded\";\r\n case IModelStatus.AlreadyOpen: return \"Already Open\";\r\n case IModelStatus.BadArg: return \"Bad Arg\";\r\n case IModelStatus.BadElement: return \"Bad Element\";\r\n case IModelStatus.BadModel: return \"Bad Model\";\r\n case IModelStatus.BadRequest: return \"Bad Request\";\r\n case IModelStatus.BadSchema: return \"Bad Schema\";\r\n case IModelStatus.CannotUndo: return \"Can not Undo\";\r\n case IModelStatus.CodeNotReserved: return \"Code Not Reserved\";\r\n case IModelStatus.DeletionProhibited: return \"Deletion Prohibited\";\r\n case IModelStatus.DuplicateCode: return \"Duplicate Code\";\r\n case IModelStatus.DuplicateName: return \"Duplicate Name\";\r\n case IModelStatus.ElementBlockedChange: return \"Element Blocked Change\";\r\n case IModelStatus.FileAlreadyExists: return \"File Already Exists\";\r\n case IModelStatus.FileNotFound: return \"File Not Found\";\r\n case IModelStatus.FileNotLoaded: return \"File Not Loaded\";\r\n case IModelStatus.ForeignKeyConstraint: return \"ForeignKey Constraint\";\r\n case IModelStatus.IdExists: return \"Id Exists\";\r\n case IModelStatus.InDynamicTransaction: return \"InDynamicTransaction\";\r\n case IModelStatus.InvalidCategory: return \"Invalid Category\";\r\n case IModelStatus.InvalidCode: return \"Invalid Code\";\r\n case IModelStatus.InvalidCodeSpec: return \"Invalid CodeSpec\";\r\n case IModelStatus.InvalidId: return \"Invalid Id\";\r\n case IModelStatus.InvalidName: return \"Invalid Name\";\r\n case IModelStatus.InvalidParent: return \"Invalid Parent\";\r\n case IModelStatus.InvalidProfileVersion: return \"Invalid Profile Version\";\r\n case IModelStatus.IsCreatingChangeSet: return \"IsCreatingChangeSet\";\r\n case IModelStatus.LockNotHeld: return \"Lock Not Held\";\r\n case IModelStatus.Mismatch2d3d: return \"Mismatch 2d3d\";\r\n case IModelStatus.MismatchGcs: return \"Mismatch Gcs\";\r\n case IModelStatus.MissingDomain: return \"Missing Domain\";\r\n case IModelStatus.MissingHandler: return \"Missing Handler\";\r\n case IModelStatus.MissingId: return \"Missing Id\";\r\n case IModelStatus.NoGeometry: return \"No Geometry\";\r\n case IModelStatus.NoMultiTxnOperation: return \"NoMultiTxnOperation\";\r\n case IModelStatus.NotEnabled: return \"Not Enabled\";\r\n case IModelStatus.NotFound: return \"Not Found\";\r\n case IModelStatus.NotOpen: return \"Not Open\";\r\n case IModelStatus.NotOpenForWrite: return \"Not Open For Write\";\r\n case IModelStatus.NotSameUnitBase: return \"Not Same Unit Base\";\r\n case IModelStatus.NothingToRedo: return \"Nothing To Redo\";\r\n case IModelStatus.NothingToUndo: return \"Nothing To Undo\";\r\n case IModelStatus.ParentBlockedChange: return \"Parent Blocked Change\";\r\n case IModelStatus.ReadError: return \"Read Error\";\r\n case IModelStatus.ReadOnly: return \"ReadOnly\";\r\n case IModelStatus.ReadOnlyDomain: return \"ReadOnlyDomain\";\r\n case IModelStatus.RepositoryManagerError: return \"RepositoryManagerError\";\r\n case IModelStatus.SQLiteError: return \"SQLiteError\";\r\n case IModelStatus.TransactionActive: return \"Transaction Active\";\r\n case IModelStatus.UnitsMissing: return \"Units Missing\";\r\n case IModelStatus.UnknownFormat: return \"Unknown Format\";\r\n case IModelStatus.UpgradeFailed: return \"Upgrade Failed\";\r\n case IModelStatus.ValidationFailed: return \"Validation Failed\";\r\n case IModelStatus.VersionTooNew: return \"Version Too New\";\r\n case IModelStatus.VersionTooOld: return \"Version Too Old\";\r\n case IModelStatus.ViewNotFound: return \"View Not Found\";\r\n case IModelStatus.WriteError: return \"Write Error\";\r\n case IModelStatus.WrongClass: return \"Wrong Class\";\r\n case IModelStatus.WrongIModel: return \"Wrong IModel\";\r\n case IModelStatus.WrongDomain: return \"Wrong Domain\";\r\n case IModelStatus.WrongElement: return \"Wrong Element\";\r\n case IModelStatus.WrongHandler: return \"Wrong Handler\";\r\n case IModelStatus.WrongModel: return \"Wrong Model\";\r\n case DbResult.BE_SQLITE_ERROR: return \"BE_SQLITE_ERROR\";\r\n case DbResult.BE_SQLITE_INTERNAL: return \"BE_SQLITE_INTERNAL\";\r\n case DbResult.BE_SQLITE_PERM: return \"BE_SQLITE_PERM\";\r\n case DbResult.BE_SQLITE_ABORT: return \"BE_SQLITE_ABORT\";\r\n case DbResult.BE_SQLITE_BUSY: return \"Db is busy\";\r\n case DbResult.BE_SQLITE_LOCKED: return \"Db is Locked\";\r\n case DbResult.BE_SQLITE_NOMEM: return \"BE_SQLITE_NOMEM\";\r\n case DbResult.BE_SQLITE_READONLY: return \"Readonly\";\r\n case DbResult.BE_SQLITE_INTERRUPT: return \"BE_SQLITE_INTERRUPT\";\r\n case DbResult.BE_SQLITE_IOERR: return \"BE_SQLITE_IOERR\";\r\n case DbResult.BE_SQLITE_CORRUPT: return \"BE_SQLITE_CORRUPT\";\r\n case DbResult.BE_SQLITE_NOTFOUND: return \"Not Found\";\r\n case DbResult.BE_SQLITE_FULL: return \"BE_SQLITE_FULL\";\r\n case DbResult.BE_SQLITE_CANTOPEN: return \"Can't open\";\r\n case DbResult.BE_SQLITE_PROTOCOL: return \"BE_SQLITE_PROTOCOL\";\r\n case DbResult.BE_SQLITE_EMPTY: return \"BE_SQLITE_EMPTY\";\r\n case DbResult.BE_SQLITE_SCHEMA: return \"BE_SQLITE_SCHEMA\";\r\n case DbResult.BE_SQLITE_TOOBIG: return \"BE_SQLITE_TOOBIG\";\r\n case DbResult.BE_SQLITE_MISMATCH: return \"BE_SQLITE_MISMATCH\";\r\n case DbResult.BE_SQLITE_MISUSE: return \"BE_SQLITE_MISUSE\";\r\n case DbResult.BE_SQLITE_NOLFS: return \"BE_SQLITE_NOLFS\";\r\n case DbResult.BE_SQLITE_AUTH: return \"BE_SQLITE_AUTH\";\r\n case DbResult.BE_SQLITE_FORMAT: return \"BE_SQLITE_FORMAT\";\r\n case DbResult.BE_SQLITE_RANGE: return \"BE_SQLITE_RANGE\";\r\n case DbResult.BE_SQLITE_NOTADB: return \"Not a Database\";\r\n case DbResult.BE_SQLITE_IOERR_READ: return \"BE_SQLITE_IOERR_READ\";\r\n case DbResult.BE_SQLITE_IOERR_SHORT_READ: return \"BE_SQLITE_IOERR_SHORT_READ\";\r\n case DbResult.BE_SQLITE_IOERR_WRITE: return \"BE_SQLITE_IOERR_WRITE\";\r\n case DbResult.BE_SQLITE_IOERR_FSYNC: return \"BE_SQLITE_IOERR_FSYNC\";\r\n case DbResult.BE_SQLITE_IOERR_DIR_FSYNC: return \"BE_SQLITE_IOERR_DIR_FSYNC\";\r\n case DbResult.BE_SQLITE_IOERR_TRUNCATE: return \"BE_SQLITE_IOERR_TRUNCATE\";\r\n case DbResult.BE_SQLITE_IOERR_FSTAT: return \"BE_SQLITE_IOERR_FSTAT\";\r\n case DbResult.BE_SQLITE_IOERR_UNLOCK: return \"BE_SQLITE_IOERR_UNLOCK\";\r\n case DbResult.BE_SQLITE_IOERR_RDLOCK: return \"BE_SQLITE_IOERR_RDLOCK\";\r\n case DbResult.BE_SQLITE_IOERR_DELETE: return \"BE_SQLITE_IOERR_DELETE\";\r\n case DbResult.BE_SQLITE_IOERR_BLOCKED: return \"BE_SQLITE_IOERR_BLOCKED\";\r\n case DbResult.BE_SQLITE_IOERR_NOMEM: return \"BE_SQLITE_IOERR_NOMEM\";\r\n case DbResult.BE_SQLITE_IOERR_ACCESS: return \"BE_SQLITE_IOERR_ACCESS\";\r\n case DbResult.BE_SQLITE_IOERR_CHECKRESERVEDLOCK: return \"BE_SQLITE_IOERR_CHECKRESERVEDLOCK\";\r\n case DbResult.BE_SQLITE_IOERR_LOCK: return \"BE_SQLITE_IOERR_LOCK\";\r\n case DbResult.BE_SQLITE_IOERR_CLOSE: return \"BE_SQLITE_IOERR_CLOSE\";\r\n case DbResult.BE_SQLITE_IOERR_DIR_CLOSE: return \"BE_SQLITE_IOERR_DIR_CLOSE\";\r\n case DbResult.BE_SQLITE_IOERR_SHMOPEN: return \"BE_SQLITE_IOERR_SHMOPEN\";\r\n case DbResult.BE_SQLITE_IOERR_SHMSIZE: return \"BE_SQLITE_IOERR_SHMSIZE\";\r\n case DbResult.BE_SQLITE_IOERR_SHMLOCK: return \"BE_SQLITE_IOERR_SHMLOCK\";\r\n case DbResult.BE_SQLITE_IOERR_SHMMAP: return \"BE_SQLITE_IOERR_SHMMAP\";\r\n case DbResult.BE_SQLITE_IOERR_SEEK: return \"BE_SQLITE_IOERR_SEEK\";\r\n case DbResult.BE_SQLITE_IOERR_DELETE_NOENT: return \"BE_SQLITE_IOERR_DELETE_NOENT\";\r\n\r\n case DbResult.BE_SQLITE_ERROR_DataTransformRequired: return \"Schema update require to transform data\";\r\n case DbResult.BE_SQLITE_ERROR_FileExists: return \"File Exists\";\r\n case DbResult.BE_SQLITE_ERROR_AlreadyOpen: return \"Already Open\";\r\n case DbResult.BE_SQLITE_ERROR_NoPropertyTable: return \"No Property Table\";\r\n case DbResult.BE_SQLITE_ERROR_FileNotFound: return \"File Not Found\";\r\n case DbResult.BE_SQLITE_ERROR_NoTxnActive: return \"No Txn Active\";\r\n case DbResult.BE_SQLITE_ERROR_BadDbProfile: return \"Bad Db Profile\";\r\n case DbResult.BE_SQLITE_ERROR_InvalidProfileVersion: return \"Invalid Profile Version\";\r\n case DbResult.BE_SQLITE_ERROR_ProfileUpgradeFailed: return \"Profile Upgrade Failed\";\r\n case DbResult.BE_SQLITE_ERROR_ProfileTooOldForReadWrite: return \"Profile Too Old For ReadWrite\";\r\n case DbResult.BE_SQLITE_ERROR_ProfileTooOld: return \"Profile Too Old\";\r\n case DbResult.BE_SQLITE_ERROR_ProfileTooNewForReadWrite: return \"Profile Too New For ReadWrite\";\r\n case DbResult.BE_SQLITE_ERROR_ProfileTooNew: return \"Profile Too New\";\r\n case DbResult.BE_SQLITE_ERROR_ChangeTrackError: return \"ChangeTrack Error\";\r\n case DbResult.BE_SQLITE_ERROR_InvalidChangeSetVersion: return \"Invalid ChangeSet Version\";\r\n case DbResult.BE_SQLITE_ERROR_SchemaUpgradeRequired: return \"Schema Upgrade Required\";\r\n case DbResult.BE_SQLITE_ERROR_SchemaTooNew: return \"Schema Too New\";\r\n case DbResult.BE_SQLITE_ERROR_SchemaTooOld: return \"Schema Too Old\";\r\n case DbResult.BE_SQLITE_ERROR_SchemaLockFailed: return \"Schema Lock Failed\";\r\n case DbResult.BE_SQLITE_ERROR_SchemaUpgradeFailed: return \"Schema Upgrade Failed\";\r\n case DbResult.BE_SQLITE_ERROR_SchemaImportFailed: return \"Schema Import Failed\";\r\n case DbResult.BE_SQLITE_ERROR_CouldNotAcquireLocksOrCodes: return \"Could Not Acquire Locks Or Codes\";\r\n case DbResult.BE_SQLITE_ERROR_SchemaUpgradeRecommended: return \"Recommended that the schemas found in the database be upgraded\";\r\n case DbResult.BE_SQLITE_LOCKED_SHAREDCACHE: return \"BE_SQLITE_LOCKED_SHAREDCACHE\";\r\n case DbResult.BE_SQLITE_BUSY_RECOVERY: return \"BE_SQLITE_BUSY_RECOVERY\";\r\n case DbResult.BE_SQLITE_CANTOPEN_NOTEMPDIR: return \"SQLite No Temp Dir\";\r\n case DbResult.BE_SQLITE_CANTOPEN_ISDIR: return \"BE_SQLITE_CANTOPEN_ISDIR\";\r\n case DbResult.BE_SQLITE_CANTOPEN_FULLPATH: return \"BE_SQLITE_CANTOPEN_FULLPATH\";\r\n case DbResult.BE_SQLITE_CORRUPT_VTAB: return \"BE_SQLITE_CORRUPT_VTAB\";\r\n case DbResult.BE_SQLITE_READONLY_RECOVERY: return \"BE_SQLITE_READONLY_RECOVERY\";\r\n case DbResult.BE_SQLITE_READONLY_CANTLOCK: return \"BE_SQLITE_READONLY_CANTLOCK\";\r\n case DbResult.BE_SQLITE_READONLY_ROLLBACK: return \"BE_SQLITE_READONLY_ROLLBACK\";\r\n case DbResult.BE_SQLITE_ABORT_ROLLBACK: return \"BE_SQLITE_ABORT_ROLLBACK\";\r\n case DbResult.BE_SQLITE_CONSTRAINT_CHECK: return \"BE_SQLITE_CONSTRAINT_CHECK\";\r\n case DbResult.BE_SQLITE_CONSTRAINT_COMMITHOOK: return \"CommitHook Constraint Error\";\r\n case DbResult.BE_SQLITE_CONSTRAINT_FOREIGNKEY: return \"Foreign Key Constraint Error\";\r\n case DbResult.BE_SQLITE_CONSTRAINT_FUNCTION: return \"Function Constraint Error\";\r\n case DbResult.BE_SQLITE_CONSTRAINT_NOTNULL: return \"NotNull Constraint Error\";\r\n case DbResult.BE_SQLITE_CONSTRAINT_PRIMARYKEY: return \"Primary Key Constraint Error\";\r\n case DbResult.BE_SQLITE_CONSTRAINT_TRIGGER: return \"Trigger Constraint Error\";\r\n case DbResult.BE_SQLITE_CONSTRAINT_UNIQUE: return \"Unique Constraint Error\";\r\n case DbResult.BE_SQLITE_CONSTRAINT_VTAB: return \"VTable Constraint Error\";\r\n case BentleyStatus.ERROR: return \"Error\";\r\n case BriefcaseStatus.CannotAcquire: return \"CannotAcquire\";\r\n case BriefcaseStatus.CannotDownload: return \"CannotDownload\";\r\n case BriefcaseStatus.CannotCopy: return \"CannotCopy\";\r\n case BriefcaseStatus.CannotDelete: return \"CannotDelete\";\r\n case BriefcaseStatus.VersionNotFound: return \"VersionNotFound\";\r\n case BriefcaseStatus.DownloadCancelled: return \"DownloadCancelled\";\r\n case BriefcaseStatus.ContainsDeletedChangeSets: return \"ContainsDeletedChangeSets\";\r\n case RpcInterfaceStatus.IncompatibleVersion: return \"RpcInterfaceStatus.IncompatibleVersion\";\r\n case ChangeSetStatus.ApplyError: return \"Error applying a change set\";\r\n case ChangeSetStatus.ChangeTrackingNotEnabled: return \"Change tracking has not been enabled. The ChangeSet API mandates this\";\r\n case ChangeSetStatus.CorruptedChangeStream: return \"Contents of the change stream are corrupted and does not match the ChangeSet\";\r\n case ChangeSetStatus.FileNotFound: return \"File containing the changes was not found\";\r\n case ChangeSetStatus.FileWriteError: return \"Error writing the contents of the change set to the backing change stream file\";\r\n case ChangeSetStatus.HasLocalChanges: return \"Cannot perform the operation since the Db has local changes\";\r\n case ChangeSetStatus.HasUncommittedChanges: return \"Cannot perform the operation since current transaction has uncommitted changes\";\r\n case ChangeSetStatus.InvalidId: return \"Invalid ChangeSet Id\";\r\n case ChangeSetStatus.InvalidVersion: return \"Invalid version of the change set\";\r\n case ChangeSetStatus.InDynamicTransaction: return \"Cannot perform the operation since system is in the middle of a dynamic transaction\";\r\n case ChangeSetStatus.IsCreatingChangeSet: return \"Cannot perform operation since system is in the middle of a creating a change set\";\r\n case ChangeSetStatus.IsNotCreatingChangeSet: return \"Cannot perform operation since the system is not creating a change set\";\r\n case ChangeSetStatus.MergePropagationError: return \"Error propagating the changes after the merge\";\r\n case ChangeSetStatus.NothingToMerge: return \"No change sets to merge\";\r\n case ChangeSetStatus.NoTransactions: return \"No transactions are available to create a change set\";\r\n case ChangeSetStatus.ParentMismatch: return \"Parent change set of the Db does not match the parent id of the change set\";\r\n case ChangeSetStatus.SQLiteError: return \"Error performing a SQLite operation on the Db\";\r\n case ChangeSetStatus.WrongDgnDb: return \"ChangeSet originated in a different Db\";\r\n case ChangeSetStatus.CouldNotOpenDgnDb: return \"Could not open the DgnDb to merge change set\";\r\n case ChangeSetStatus.MergeSchemaChangesOnOpen: return \"Cannot merge changes in in an open DgnDb. Close the DgnDb, and process the operation when it is opened\";\r\n case ChangeSetStatus.ReverseOrReinstateSchemaChanges: return \"Cannot reverse or reinstate schema changes.\";\r\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\";\r\n case ChangeSetStatus.CannotMergeIntoReadonly: return \"Cannot merge changes into a Readonly DgnDb\";\r\n case ChangeSetStatus.CannotMergeIntoMaster: return \"Cannot merge changes into a Master DgnDb\";\r\n case ChangeSetStatus.CannotMergeIntoReversed: return \"Cannot merge changes into a DgnDb that has reversed change sets\";\r\n case ChangeSetStatus.DownloadCancelled: return \"ChangeSet(s) download was cancelled.\";\r\n case RepositoryStatus.ServerUnavailable: return \"ServerUnavailable\";\r\n case RepositoryStatus.LockAlreadyHeld: return \"LockAlreadyHeld\";\r\n case RepositoryStatus.SyncError: return \"SyncError\";\r\n case RepositoryStatus.InvalidResponse: return \"InvalidResponse\";\r\n case RepositoryStatus.PendingTransactions: return \"PendingTransactions\";\r\n case RepositoryStatus.LockUsed: return \"LockUsed\";\r\n case RepositoryStatus.CannotCreateChangeSet: return \"CannotCreateChangeSet\";\r\n case RepositoryStatus.InvalidRequest: return \"InvalidRequest\";\r\n case RepositoryStatus.ChangeSetRequired: return \"ChangeSetRequired\";\r\n case RepositoryStatus.CodeUnavailable: return \"CodeUnavailable\";\r\n case RepositoryStatus.CodeNotReserved: return \"CodeNotReserved\";\r\n case RepositoryStatus.CodeUsed: return \"CodeUsed\";\r\n case RepositoryStatus.LockNotHeld: return \"LockNotHeld\";\r\n case RepositoryStatus.RepositoryIsLocked: return \"RepositoryIsLocked\";\r\n case RepositoryStatus.ChannelConstraintViolation: return \"ChannelConstraintViolation\";\r\n case HttpStatus.Info: return \"HTTP Info\";\r\n case HttpStatus.Redirection: return \"HTTP Redirection\";\r\n case HttpStatus.ClientError: return \"HTTP Client error\";\r\n case HttpStatus.ServerError: return \"HTTP Server error\";\r\n case IModelHubStatus.Unknown: return \"Unknown error\";\r\n case IModelHubStatus.MissingRequiredProperties: return \"Missing required properties\";\r\n case IModelHubStatus.InvalidPropertiesValues: return \"Invalid properties values\";\r\n case IModelHubStatus.UserDoesNotHavePermission: return \"User does not have permission\";\r\n case IModelHubStatus.UserDoesNotHaveAccess: return \"User does not have access\";\r\n case IModelHubStatus.InvalidBriefcase: return \"Invalid briefcase\";\r\n case IModelHubStatus.BriefcaseDoesNotExist: return \"Briefcase does not exist\";\r\n case IModelHubStatus.BriefcaseDoesNotBelongToUser: return \"Briefcase does not belong to user\";\r\n case IModelHubStatus.AnotherUserPushing: return \"Another user pushing\";\r\n case IModelHubStatus.ChangeSetAlreadyExists: return \"ChangeSet already exists\";\r\n case IModelHubStatus.ChangeSetDoesNotExist: return \"ChangeSet does not exist\";\r\n case IModelHubStatus.FileIsNotUploaded: return \"File is not uploaded\";\r\n case IModelHubStatus.iModelIsNotInitialized: return \"iModel is not initialized\";\r\n case IModelHubStatus.ChangeSetPointsToBadSeed: return \"ChangeSet points to a bad seed file\";\r\n case IModelHubStatus.OperationFailed: return \"iModelHub operation has failed\";\r\n case IModelHubStatus.PullIsRequired: return \"Pull is required\";\r\n case IModelHubStatus.MaximumNumberOfBriefcasesPerUser: return \"Limit of briefcases per user was reached\";\r\n case IModelHubStatus.MaximumNumberOfBriefcasesPerUserPerMinute: return \"Limit of briefcases per user per minute was reached\";\r\n case IModelHubStatus.DatabaseTemporarilyLocked: return \"Database is temporarily locked\";\r\n case IModelHubStatus.iModelIsLocked: return \"iModel is locked\";\r\n case IModelHubStatus.CodesExist: return \"Code already exists\";\r\n case IModelHubStatus.LocksExist: return \"Lock already exists\";\r\n case IModelHubStatus.iModelAlreadyExists: return \"iModel already exists\";\r\n case IModelHubStatus.iModelDoesNotExist: return \"iModel does not exist\";\r\n case IModelHubStatus.LockDoesNotExist: return \"Lock does not exist\";\r\n case IModelHubStatus.LockChunkDoesNotExist: return \"Lock chunk does not exist\";\r\n case IModelHubStatus.LockOwnedByAnotherBriefcase: return \"Lock is owned by another briefcase\";\r\n case IModelHubStatus.CodeStateInvalid: return \"Code state is invalid\";\r\n case IModelHubStatus.CodeReservedByAnotherBriefcase: return \"Code is reserved by another briefcase\";\r\n case IModelHubStatus.CodeDoesNotExist: return \"Code does not exist\";\r\n case IModelHubStatus.FileDoesNotExist: return \"File does not exist\";\r\n case IModelHubStatus.FileAlreadyExists: return \"File already exists\";\r\n case IModelHubStatus.EventTypeDoesNotExist: return \"Event type does not exist\";\r\n case IModelHubStatus.EventSubscriptionDoesNotExist: return \"Event subscription does not exist\";\r\n case IModelHubStatus.EventSubscriptionAlreadyExists: return \"Event subscription already exists\";\r\n case IModelHubStatus.ITwinIdIsNotSpecified: return \"ITwin Id is not specified\";\r\n case IModelHubStatus.FailedToGetITwinPermissions: return \"Failed to get iTwin permissions\";\r\n case IModelHubStatus.FailedToGetITwinMembers: return \"Failed to get iTwin members\";\r\n case IModelHubStatus.FailedToGetAssetPermissions: return \"Failed to get asset permissions\";\r\n case IModelHubStatus.FailedToGetAssetMembers: return \"Failed to get asset members\";\r\n case IModelHubStatus.ChangeSetAlreadyHasVersion: return \"ChangeSet already has version\";\r\n case IModelHubStatus.VersionAlreadyExists: return \"Version already exists\";\r\n case IModelHubStatus.JobSchedulingFailed: return \"Failed to schedule a background job\";\r\n case IModelHubStatus.ConflictsAggregate: return \"Codes or locks are owned by another briefcase\";\r\n case IModelHubStatus.FailedToGetITwinById: return \"Failed to query iTwin by its id\";\r\n case IModelHubStatus.DatabaseOperationFailed: return \"Database operation has failed\";\r\n case IModelHubStatus.ITwinDoesNotExist: return \"ITwin does not exist\";\r\n case IModelHubStatus.UndefinedArgumentError: return \"Undefined argument\";\r\n case IModelHubStatus.InvalidArgumentError: return \"Invalid argument\";\r\n case IModelHubStatus.MissingDownloadUrlError: return \"Missing download url\";\r\n case IModelHubStatus.NotSupportedInBrowser: return \"Not supported in browser\";\r\n case IModelHubStatus.FileHandlerNotSet: return \"File handler is not set\";\r\n case IModelHubStatus.FileNotFound: return \"File not found\";\r\n case GeoServiceStatus.NoGeoLocation: return \"No GeoLocation\";\r\n case GeoServiceStatus.OutOfUsefulRange: return \"Out of useful range\";\r\n case GeoServiceStatus.OutOfMathematicalDomain: return \"Out of mathematical domain\";\r\n case GeoServiceStatus.NoDatumConverter: return \"No datum converter\";\r\n case GeoServiceStatus.VerticalDatumConvertError: return \"Vertical datum convert error\";\r\n case GeoServiceStatus.CSMapError: return \"CSMap error\";\r\n case GeoServiceStatus.Pending: return \"Pending\";\r\n case RealityDataStatus.InvalidData: return \"Invalid or unknown data\";\r\n case IModelStatus.Success:\r\n case DbResult.BE_SQLITE_OK:\r\n case DbResult.BE_SQLITE_ROW:\r\n case DbResult.BE_SQLITE_DONE:\r\n case BentleyStatus.SUCCESS:\r\n return \"Success\";\r\n\r\n default:\r\n return `Error (${this.errorNumber})`;\r\n }\r\n }\r\n\r\n /** Use run-time type checking to safely get a useful string summary of an unknown error value, or `\"\"` if none exists.\r\n * @note It's recommended to use this function in `catch` clauses, where a caught value cannot be assumed to be `instanceof Error`\r\n * @public\r\n */\r\n public static getErrorMessage(error: unknown): string {\r\n if (typeof error === \"string\")\r\n return error;\r\n\r\n if (error instanceof Error)\r\n return error.toString();\r\n\r\n if (isObject(error)) {\r\n if (typeof error.message === \"string\")\r\n return error.message;\r\n\r\n if (typeof error.msg === \"string\")\r\n return error.msg;\r\n\r\n if (error.toString() !== \"[object Object]\")\r\n return error.toString();\r\n }\r\n\r\n return \"\";\r\n }\r\n\r\n /** Use run-time type checking to safely get the call stack of an unknown error value, if possible.\r\n * @note It's recommended to use this function in `catch` clauses, where a caught value cannot be assumed to be `instanceof Error`\r\n * @public\r\n */\r\n public static getErrorStack(error: unknown): string | undefined {\r\n if (isObject(error) && typeof error.stack === \"string\")\r\n return error.stack;\r\n\r\n return undefined;\r\n }\r\n\r\n /** Use run-time type checking to safely get the metadata with an unknown error value, if possible.\r\n * @note It's recommended to use this function in `catch` clauses, where a caught value cannot be assumed to be `instanceof BentleyError`\r\n * @see [[BentleyError.getMetaData]]\r\n * @public\r\n */\r\n public static getErrorMetadata(error: unknown): object | undefined {\r\n if (isObject(error) && typeof error.getMetaData === \"function\") {\r\n const metadata = error.getMetaData();\r\n if (typeof metadata === \"object\" && metadata !== null)\r\n return metadata;\r\n }\r\n\r\n return undefined;\r\n }\r\n\r\n /** Returns a new `ErrorProps` object representing an unknown error value. Useful for logging or wrapping/re-throwing caught errors.\r\n * @note Unlike `Error` objects (which lose messages and call stacks when serialized to JSON), objects\r\n * returned by this are plain old JavaScript objects, and can be easily logged/serialized to JSON.\r\n * @public\r\n */\r\n public static getErrorProps(error: unknown): ErrorProps {\r\n const serialized: ErrorProps = {\r\n message: BentleyError.getErrorMessage(error),\r\n };\r\n\r\n const stack = BentleyError.getErrorStack(error);\r\n if (stack)\r\n serialized.stack = stack;\r\n\r\n const metadata = BentleyError.getErrorMetadata(error);\r\n if (metadata)\r\n serialized.metadata = metadata;\r\n\r\n return serialized;\r\n }\r\n}\r\n\r\n"]}