@itwin/core-bentley 3.6.0-dev.7 → 3.6.0

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 (243) hide show
  1. package/CHANGELOG.md +39 -1
  2. package/LICENSE.md +1 -1
  3. package/lib/cjs/AccessToken.d.ts +10 -8
  4. package/lib/cjs/AccessToken.d.ts.map +1 -1
  5. package/lib/cjs/AccessToken.js +9 -9
  6. package/lib/cjs/AccessToken.js.map +1 -1
  7. package/lib/cjs/Assert.d.ts +25 -25
  8. package/lib/cjs/Assert.js +45 -45
  9. package/lib/cjs/Assert.js.map +1 -1
  10. package/lib/cjs/BeEvent.d.ts +81 -81
  11. package/lib/cjs/BeEvent.js +156 -156
  12. package/lib/cjs/BeEvent.js.map +1 -1
  13. package/lib/cjs/BeSQLite.d.ts +172 -170
  14. package/lib/cjs/BeSQLite.d.ts.map +1 -1
  15. package/lib/cjs/BeSQLite.js +185 -183
  16. package/lib/cjs/BeSQLite.js.map +1 -1
  17. package/lib/cjs/BentleyError.d.ts +378 -378
  18. package/lib/cjs/BentleyError.d.ts.map +1 -1
  19. package/lib/cjs/BentleyError.js +703 -702
  20. package/lib/cjs/BentleyError.js.map +1 -1
  21. package/lib/cjs/BentleyLoggerCategory.d.ts +11 -11
  22. package/lib/cjs/BentleyLoggerCategory.js +19 -19
  23. package/lib/cjs/BentleyLoggerCategory.js.map +1 -1
  24. package/lib/cjs/ByteStream.d.ts +110 -94
  25. package/lib/cjs/ByteStream.d.ts.map +1 -1
  26. package/lib/cjs/ByteStream.js +159 -143
  27. package/lib/cjs/ByteStream.js.map +1 -1
  28. package/lib/cjs/ClassUtils.d.ts +14 -14
  29. package/lib/cjs/ClassUtils.js +27 -27
  30. package/lib/cjs/ClassUtils.js.map +1 -1
  31. package/lib/cjs/Compare.d.ts +47 -47
  32. package/lib/cjs/Compare.js +75 -75
  33. package/lib/cjs/Compare.js.map +1 -1
  34. package/lib/cjs/CompressedId64Set.d.ts +134 -134
  35. package/lib/cjs/CompressedId64Set.js +428 -428
  36. package/lib/cjs/CompressedId64Set.js.map +1 -1
  37. package/lib/cjs/Dictionary.d.ts +125 -125
  38. package/lib/cjs/Dictionary.js +203 -203
  39. package/lib/cjs/Dictionary.js.map +1 -1
  40. package/lib/cjs/Disposable.d.ts +80 -80
  41. package/lib/cjs/Disposable.js +120 -120
  42. package/lib/cjs/Disposable.js.map +1 -1
  43. package/lib/cjs/Id.d.ts +285 -277
  44. package/lib/cjs/Id.d.ts.map +1 -1
  45. package/lib/cjs/Id.js +643 -629
  46. package/lib/cjs/Id.js.map +1 -1
  47. package/lib/cjs/IndexMap.d.ts +65 -65
  48. package/lib/cjs/IndexMap.js +91 -91
  49. package/lib/cjs/IndexMap.js.map +1 -1
  50. package/lib/cjs/JsonSchema.d.ts +77 -77
  51. package/lib/cjs/JsonSchema.js +9 -9
  52. package/lib/cjs/JsonSchema.js.map +1 -1
  53. package/lib/cjs/JsonUtils.d.ts +78 -78
  54. package/lib/cjs/JsonUtils.js +151 -151
  55. package/lib/cjs/JsonUtils.js.map +1 -1
  56. package/lib/cjs/LRUMap.d.ts +129 -129
  57. package/lib/cjs/LRUMap.js +333 -333
  58. package/lib/cjs/LRUMap.js.map +1 -1
  59. package/lib/cjs/Logger.d.ts +143 -143
  60. package/lib/cjs/Logger.js +258 -258
  61. package/lib/cjs/Logger.js.map +1 -1
  62. package/lib/cjs/ObservableSet.d.ts +23 -23
  63. package/lib/cjs/ObservableSet.js +51 -51
  64. package/lib/cjs/ObservableSet.js.map +1 -1
  65. package/lib/cjs/OneAtATimeAction.d.ts +31 -31
  66. package/lib/cjs/OneAtATimeAction.js +94 -94
  67. package/lib/cjs/OneAtATimeAction.js.map +1 -1
  68. package/lib/cjs/OrderedId64Iterable.d.ts +74 -74
  69. package/lib/cjs/OrderedId64Iterable.js +235 -235
  70. package/lib/cjs/OrderedId64Iterable.js.map +1 -1
  71. package/lib/cjs/OrderedSet.d.ts +40 -40
  72. package/lib/cjs/OrderedSet.js +64 -64
  73. package/lib/cjs/OrderedSet.js.map +1 -1
  74. package/lib/cjs/PriorityQueue.d.ts +70 -70
  75. package/lib/cjs/PriorityQueue.js +140 -140
  76. package/lib/cjs/PriorityQueue.js.map +1 -1
  77. package/lib/cjs/ProcessDetector.d.ts +59 -59
  78. package/lib/cjs/ProcessDetector.js +71 -71
  79. package/lib/cjs/ProcessDetector.js.map +1 -1
  80. package/lib/cjs/SortedArray.d.ts +232 -232
  81. package/lib/cjs/SortedArray.js +303 -303
  82. package/lib/cjs/SortedArray.js.map +1 -1
  83. package/lib/cjs/StatusCategory.d.ts +30 -30
  84. package/lib/cjs/StatusCategory.js +460 -460
  85. package/lib/cjs/StatusCategory.js.map +1 -1
  86. package/lib/cjs/StringUtils.d.ts +22 -22
  87. package/lib/cjs/StringUtils.js +148 -148
  88. package/lib/cjs/StringUtils.js.map +1 -1
  89. package/lib/cjs/Time.d.ts +122 -122
  90. package/lib/cjs/Time.js +152 -152
  91. package/lib/cjs/Time.js.map +1 -1
  92. package/lib/cjs/Tracing.d.ts +40 -40
  93. package/lib/cjs/Tracing.js +130 -130
  94. package/lib/cjs/Tracing.js.map +1 -1
  95. package/lib/cjs/TupleKeyedMap.d.ts +36 -36
  96. package/lib/cjs/TupleKeyedMap.js +102 -102
  97. package/lib/cjs/TupleKeyedMap.js.map +1 -1
  98. package/lib/cjs/TypedArrayBuilder.d.ts +155 -97
  99. package/lib/cjs/TypedArrayBuilder.d.ts.map +1 -1
  100. package/lib/cjs/TypedArrayBuilder.js +208 -134
  101. package/lib/cjs/TypedArrayBuilder.js.map +1 -1
  102. package/lib/cjs/UnexpectedErrors.d.ts +43 -43
  103. package/lib/cjs/UnexpectedErrors.js +68 -68
  104. package/lib/cjs/UnexpectedErrors.js.map +1 -1
  105. package/lib/cjs/UtilityTypes.d.ts +96 -100
  106. package/lib/cjs/UtilityTypes.d.ts.map +1 -1
  107. package/lib/cjs/UtilityTypes.js +40 -40
  108. package/lib/cjs/UtilityTypes.js.map +1 -1
  109. package/lib/cjs/YieldManager.d.ts +18 -18
  110. package/lib/cjs/YieldManager.js +34 -34
  111. package/lib/cjs/YieldManager.js.map +1 -1
  112. package/lib/cjs/core-bentley.d.ts +74 -75
  113. package/lib/cjs/core-bentley.d.ts.map +1 -1
  114. package/lib/cjs/core-bentley.js +90 -91
  115. package/lib/cjs/core-bentley.js.map +1 -1
  116. package/lib/cjs/partitionArray.d.ts +21 -21
  117. package/lib/cjs/partitionArray.js +43 -43
  118. package/lib/cjs/partitionArray.js.map +1 -1
  119. package/lib/esm/AccessToken.d.ts +10 -8
  120. package/lib/esm/AccessToken.d.ts.map +1 -1
  121. package/lib/esm/AccessToken.js +8 -8
  122. package/lib/esm/AccessToken.js.map +1 -1
  123. package/lib/esm/Assert.d.ts +25 -25
  124. package/lib/esm/Assert.js +41 -41
  125. package/lib/esm/Assert.js.map +1 -1
  126. package/lib/esm/BeEvent.d.ts +81 -81
  127. package/lib/esm/BeEvent.js +150 -150
  128. package/lib/esm/BeEvent.js.map +1 -1
  129. package/lib/esm/BeSQLite.d.ts +172 -170
  130. package/lib/esm/BeSQLite.d.ts.map +1 -1
  131. package/lib/esm/BeSQLite.js +182 -180
  132. package/lib/esm/BeSQLite.js.map +1 -1
  133. package/lib/esm/BentleyError.d.ts +378 -378
  134. package/lib/esm/BentleyError.d.ts.map +1 -1
  135. package/lib/esm/BentleyError.js +699 -698
  136. package/lib/esm/BentleyError.js.map +1 -1
  137. package/lib/esm/BentleyLoggerCategory.d.ts +11 -11
  138. package/lib/esm/BentleyLoggerCategory.js +16 -16
  139. package/lib/esm/BentleyLoggerCategory.js.map +1 -1
  140. package/lib/esm/ByteStream.d.ts +110 -94
  141. package/lib/esm/ByteStream.d.ts.map +1 -1
  142. package/lib/esm/ByteStream.js +155 -139
  143. package/lib/esm/ByteStream.js.map +1 -1
  144. package/lib/esm/ClassUtils.d.ts +14 -14
  145. package/lib/esm/ClassUtils.js +22 -22
  146. package/lib/esm/ClassUtils.js.map +1 -1
  147. package/lib/esm/Compare.d.ts +47 -47
  148. package/lib/esm/Compare.js +63 -63
  149. package/lib/esm/Compare.js.map +1 -1
  150. package/lib/esm/CompressedId64Set.d.ts +134 -134
  151. package/lib/esm/CompressedId64Set.js +423 -423
  152. package/lib/esm/CompressedId64Set.js.map +1 -1
  153. package/lib/esm/Dictionary.d.ts +125 -125
  154. package/lib/esm/Dictionary.js +199 -199
  155. package/lib/esm/Dictionary.js.map +1 -1
  156. package/lib/esm/Disposable.d.ts +80 -80
  157. package/lib/esm/Disposable.js +112 -112
  158. package/lib/esm/Disposable.js.map +1 -1
  159. package/lib/esm/Id.d.ts +285 -277
  160. package/lib/esm/Id.d.ts.map +1 -1
  161. package/lib/esm/Id.js +639 -625
  162. package/lib/esm/Id.js.map +1 -1
  163. package/lib/esm/IndexMap.d.ts +65 -65
  164. package/lib/esm/IndexMap.js +86 -86
  165. package/lib/esm/IndexMap.js.map +1 -1
  166. package/lib/esm/JsonSchema.d.ts +77 -77
  167. package/lib/esm/JsonSchema.js +8 -8
  168. package/lib/esm/JsonSchema.js.map +1 -1
  169. package/lib/esm/JsonUtils.d.ts +78 -78
  170. package/lib/esm/JsonUtils.js +148 -148
  171. package/lib/esm/JsonUtils.js.map +1 -1
  172. package/lib/esm/LRUMap.d.ts +129 -129
  173. package/lib/esm/LRUMap.js +326 -326
  174. package/lib/esm/LRUMap.js.map +1 -1
  175. package/lib/esm/Logger.d.ts +143 -143
  176. package/lib/esm/Logger.js +253 -253
  177. package/lib/esm/Logger.js.map +1 -1
  178. package/lib/esm/ObservableSet.d.ts +23 -23
  179. package/lib/esm/ObservableSet.js +47 -47
  180. package/lib/esm/ObservableSet.js.map +1 -1
  181. package/lib/esm/OneAtATimeAction.d.ts +31 -31
  182. package/lib/esm/OneAtATimeAction.js +89 -89
  183. package/lib/esm/OneAtATimeAction.js.map +1 -1
  184. package/lib/esm/OrderedId64Iterable.d.ts +74 -74
  185. package/lib/esm/OrderedId64Iterable.js +232 -232
  186. package/lib/esm/OrderedId64Iterable.js.map +1 -1
  187. package/lib/esm/OrderedSet.d.ts +40 -40
  188. package/lib/esm/OrderedSet.js +59 -59
  189. package/lib/esm/OrderedSet.js.map +1 -1
  190. package/lib/esm/PriorityQueue.d.ts +70 -70
  191. package/lib/esm/PriorityQueue.js +136 -136
  192. package/lib/esm/PriorityQueue.js.map +1 -1
  193. package/lib/esm/ProcessDetector.d.ts +59 -59
  194. package/lib/esm/ProcessDetector.js +67 -67
  195. package/lib/esm/ProcessDetector.js.map +1 -1
  196. package/lib/esm/SortedArray.d.ts +232 -232
  197. package/lib/esm/SortedArray.js +296 -296
  198. package/lib/esm/SortedArray.js.map +1 -1
  199. package/lib/esm/StatusCategory.d.ts +30 -30
  200. package/lib/esm/StatusCategory.js +454 -454
  201. package/lib/esm/StatusCategory.js.map +1 -1
  202. package/lib/esm/StringUtils.d.ts +22 -22
  203. package/lib/esm/StringUtils.js +142 -142
  204. package/lib/esm/StringUtils.js.map +1 -1
  205. package/lib/esm/Time.d.ts +122 -122
  206. package/lib/esm/Time.js +146 -146
  207. package/lib/esm/Time.js.map +1 -1
  208. package/lib/esm/Tracing.d.ts +40 -40
  209. package/lib/esm/Tracing.js +126 -126
  210. package/lib/esm/Tracing.js.map +1 -1
  211. package/lib/esm/TupleKeyedMap.d.ts +36 -36
  212. package/lib/esm/TupleKeyedMap.js +98 -98
  213. package/lib/esm/TupleKeyedMap.js.map +1 -1
  214. package/lib/esm/TypedArrayBuilder.d.ts +155 -97
  215. package/lib/esm/TypedArrayBuilder.d.ts.map +1 -1
  216. package/lib/esm/TypedArrayBuilder.js +200 -127
  217. package/lib/esm/TypedArrayBuilder.js.map +1 -1
  218. package/lib/esm/UnexpectedErrors.d.ts +43 -43
  219. package/lib/esm/UnexpectedErrors.js +64 -64
  220. package/lib/esm/UnexpectedErrors.js.map +1 -1
  221. package/lib/esm/UtilityTypes.d.ts +96 -100
  222. package/lib/esm/UtilityTypes.d.ts.map +1 -1
  223. package/lib/esm/UtilityTypes.js +34 -34
  224. package/lib/esm/UtilityTypes.js.map +1 -1
  225. package/lib/esm/YieldManager.d.ts +18 -18
  226. package/lib/esm/YieldManager.js +30 -30
  227. package/lib/esm/YieldManager.js.map +1 -1
  228. package/lib/esm/core-bentley.d.ts +74 -75
  229. package/lib/esm/core-bentley.d.ts.map +1 -1
  230. package/lib/esm/core-bentley.js +78 -79
  231. package/lib/esm/core-bentley.js.map +1 -1
  232. package/lib/esm/partitionArray.d.ts +21 -21
  233. package/lib/esm/partitionArray.js +39 -39
  234. package/lib/esm/partitionArray.js.map +1 -1
  235. package/package.json +3 -3
  236. package/lib/cjs/AsyncMutex.d.ts +0 -27
  237. package/lib/cjs/AsyncMutex.d.ts.map +0 -1
  238. package/lib/cjs/AsyncMutex.js +0 -44
  239. package/lib/cjs/AsyncMutex.js.map +0 -1
  240. package/lib/esm/AsyncMutex.d.ts +0 -27
  241. package/lib/esm/AsyncMutex.d.ts.map +0 -1
  242. package/lib/esm/AsyncMutex.js +0 -40
  243. package/lib/esm/AsyncMutex.js.map +0 -1
@@ -1,379 +1,379 @@
1
- /** @packageDocumentation
2
- * @module Errors
3
- */
4
- /** Standard status code.
5
- * This status code should be rarely used.
6
- * Prefer to throw an exception to indicate an error, rather than returning a special status code.
7
- * If a status code is to be returned, prefer to return a more specific error status type such as IModelStatus or DbResult.
8
- * @public
9
- */
10
- export declare enum BentleyStatus {
11
- SUCCESS = 0,
12
- ERROR = 32768
13
- }
14
- /** Status codes that are used in conjunction with [[BentleyError]].
15
- * 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.
16
- * @public
17
- */
18
- export declare enum IModelStatus {
19
- IMODEL_ERROR_BASE = 65536,
20
- Success = 0,
21
- AlreadyLoaded = 65537,
22
- AlreadyOpen = 65538,
23
- BadArg = 65539,
24
- BadElement = 65540,
25
- BadModel = 65541,
26
- BadRequest = 65542,
27
- BadSchema = 65543,
28
- CannotUndo = 65544,
29
- CodeNotReserved = 65545,
30
- DeletionProhibited = 65546,
31
- DuplicateCode = 65547,
32
- DuplicateName = 65548,
33
- ElementBlockedChange = 65549,
34
- FileAlreadyExists = 65550,
35
- FileNotFound = 65551,
36
- FileNotLoaded = 65552,
37
- ForeignKeyConstraint = 65553,
38
- IdExists = 65554,
39
- InDynamicTransaction = 65555,
40
- InvalidCategory = 65556,
41
- InvalidCode = 65557,
42
- InvalidCodeSpec = 65558,
43
- InvalidId = 65559,
44
- InvalidName = 65560,
45
- InvalidParent = 65561,
46
- InvalidProfileVersion = 65562,
47
- IsCreatingChangeSet = 65563,
48
- LockNotHeld = 65564,
49
- Mismatch2d3d = 65565,
50
- MismatchGcs = 65566,
51
- MissingDomain = 65567,
52
- MissingHandler = 65568,
53
- MissingId = 65569,
54
- NoGeometry = 65570,
55
- NoMultiTxnOperation = 65571,
56
- NotEnabled = 65573,
57
- NotFound = 65574,
58
- NotOpen = 65575,
59
- NotOpenForWrite = 65576,
60
- NotSameUnitBase = 65577,
61
- NothingToRedo = 65578,
62
- NothingToUndo = 65579,
63
- ParentBlockedChange = 65580,
64
- ReadError = 65581,
65
- ReadOnly = 65582,
66
- ReadOnlyDomain = 65583,
67
- RepositoryManagerError = 65584,
68
- SQLiteError = 65585,
69
- TransactionActive = 65586,
70
- UnitsMissing = 65587,
71
- UnknownFormat = 65588,
72
- UpgradeFailed = 65589,
73
- ValidationFailed = 65590,
74
- VersionTooNew = 65591,
75
- VersionTooOld = 65592,
76
- ViewNotFound = 65593,
77
- WriteError = 65594,
78
- WrongClass = 65595,
79
- WrongIModel = 65596,
80
- WrongDomain = 65597,
81
- WrongElement = 65598,
82
- WrongHandler = 65599,
83
- WrongModel = 65600,
84
- ConstraintNotUnique = 65601,
85
- NoGeoLocation = 65602,
86
- ServerTimeout = 65603,
87
- NoContent = 65604,
88
- NotRegistered = 65605,
89
- FunctionNotFound = 65606,
90
- NoActiveCommand = 65607
91
- }
92
- /** Error status from various briefcase operations
93
- * @beta Should these be internal?
94
- */
95
- export declare enum BriefcaseStatus {
96
- BRIEFCASE_STATUS_BASE = 131072,
97
- CannotAcquire = 131072,
98
- CannotDownload = 131073,
99
- CannotUpload = 131074,
100
- CannotCopy = 131075,
101
- CannotDelete = 131076,
102
- VersionNotFound = 131077,
103
- CannotApplyChanges = 131078,
104
- DownloadCancelled = 131079,
105
- ContainsDeletedChangeSets = 131080
106
- }
107
- /** RpcInterface status codes
108
- * @beta Should these be internal?
109
- */
110
- export declare enum RpcInterfaceStatus {
111
- Success = 0,
112
- RPC_INTERFACE_ERROR_BASE = 135168,
113
- /** The RpcInterface implemented by the server is incompatible with the interface requested by the client. */
114
- IncompatibleVersion = 135168
115
- }
116
- /** Error status from various Changeset operations
117
- * @beta Should these be internal?
118
- */
119
- export declare enum ChangeSetStatus {
120
- Success = 0,
121
- CHANGESET_ERROR_BASE = 90112,
122
- /** Error applying a change set when reversing or reinstating it */
123
- ApplyError = 90113,
124
- /** Change tracking has not been enabled. The ChangeSet API mandates this. */
125
- ChangeTrackingNotEnabled = 90114,
126
- /** Contents of the change stream are corrupted and does not match the ChangeSet */
127
- CorruptedChangeStream = 90115,
128
- /** File containing the changes to the change set is not found */
129
- FileNotFound = 90116,
130
- /** Error writing the contents of the change set to the backing change stream file */
131
- FileWriteError = 90117,
132
- /** Cannot perform the operation since the Db has local changes */
133
- HasLocalChanges = 90118,
134
- /** Cannot perform the operation since current transaction has uncommitted changes */
135
- HasUncommittedChanges = 90119,
136
- /** Invalid ChangeSet Id */
137
- InvalidId = 90120,
138
- /** Invalid version of the change set */
139
- InvalidVersion = 90121,
140
- /** Cannot perform the operation since system is in the middle of a dynamic transaction */
141
- InDynamicTransaction = 90122,
142
- /** Cannot perform operation since system is in the middle of a creating a change set */
143
- IsCreatingChangeSet = 90123,
144
- /** Cannot perform operation since the system is not creating a change set */
145
- IsNotCreatingChangeSet = 90124,
146
- /** Error propagating the changes after the merge */
147
- MergePropagationError = 90125,
148
- /** No change sets to merge */
149
- NothingToMerge = 90126,
150
- /** No transactions are available to create a change set */
151
- NoTransactions = 90127,
152
- /** Parent change set of the Db does not match the parent id of the change set */
153
- ParentMismatch = 90128,
154
- /** Error performing a SQLite operation on the Db */
155
- SQLiteError = 90129,
156
- /** ChangeSet originated in a different Db */
157
- WrongDgnDb = 90130,
158
- /** Could not open the DgnDb to merge change set */
159
- CouldNotOpenDgnDb = 90131,
160
- /** Cannot merge changes in in an open DgnDb. Close the DgnDb, and process the operation when it is opened. */
161
- MergeSchemaChangesOnOpen = 90132,
162
- /** Cannot reverse or reinstate schema changes. */
163
- ReverseOrReinstateSchemaChanges = 90133,
164
- /** Cannot process changes schema changes in an open DgnDb. Close the DgnDb, and process the operation when it is opened. */
165
- ProcessSchemaChangesOnOpen = 90134,
166
- /** Cannot merge changes into a Readonly DgnDb. */
167
- CannotMergeIntoReadonly = 90135,
168
- /** Cannot merge changes into a Master DgnDb. */
169
- CannotMergeIntoMaster = 90136,
170
- /** Cannot merge changes into a DgnDb that has reversed change sets. */
171
- CannotMergeIntoReversed = 90137,
172
- /** ChangeSet(s) download was cancelled. */
173
- DownloadCancelled = 90138
174
- }
175
- /** Return codes for methods which perform repository management operations
176
- * @beta Should these be internal?
177
- */
178
- export declare enum RepositoryStatus {
179
- Success = 0,
180
- /** The repository server did not respond to a request */
181
- ServerUnavailable = 86017,
182
- /** A requested lock was already held by another briefcase */
183
- LockAlreadyHeld = 86018,
184
- /** Failed to sync briefcase manager with server */
185
- SyncError = 86019,
186
- /** Response from server not understood */
187
- InvalidResponse = 86020,
188
- /** An operation requires local changes to be committed or abandoned */
189
- PendingTransactions = 86021,
190
- /** A lock cannot be relinquished because the associated object has been modified */
191
- LockUsed = 86022,
192
- /** An operation required creation of a ChangeSet, which failed */
193
- CannotCreateChangeSet = 86023,
194
- /** Request to server not understood */
195
- InvalidRequest = 86024,
196
- /** A change set committed to the server must be integrated into the briefcase before the operation can be completed */
197
- ChangeSetRequired = 86025,
198
- /** A requested DgnCode is reserved by another briefcase or in use */
199
- CodeUnavailable = 86026,
200
- /** A DgnCode cannot be released because it has not been reserved by the requesting briefcase */
201
- CodeNotReserved = 86027,
202
- /** A DgnCode cannot be relinquished because it has been used locally */
203
- CodeUsed = 86028,
204
- /** A required lock is not held by this briefcase */
205
- LockNotHeld = 86029,
206
- /** Repository is currently locked, no changes allowed */
207
- RepositoryIsLocked = 86030,
208
- /** Channel write constraint violation, such as an attempt to write outside the designated channel. */
209
- ChannelConstraintViolation = 86031
210
- }
211
- /** Status from returned HTTP status code
212
- * @beta Should these be internal?
213
- */
214
- export declare enum HttpStatus {
215
- /** 2xx Success */
216
- Success = 0,
217
- /** 1xx Informational responses */
218
- Info = 94209,
219
- /** 3xx Redirection */
220
- Redirection = 94210,
221
- /** 4xx Client errors */
222
- ClientError = 94211,
223
- /** 5xx Server errors */
224
- ServerError = 94212
225
- }
226
- /** iModelHub Services Errors
227
- * @beta Right package?
228
- */
229
- export declare enum IModelHubStatus {
230
- Success = 0,
231
- IMODELHUBERROR_BASE = 102400,
232
- IMODELHUBERROR_REQUESTERRORBASE = 102656,
233
- Unknown = 102401,
234
- MissingRequiredProperties = 102402,
235
- InvalidPropertiesValues = 102403,
236
- UserDoesNotHavePermission = 102404,
237
- UserDoesNotHaveAccess = 102405,
238
- InvalidBriefcase = 102406,
239
- BriefcaseDoesNotExist = 102407,
240
- BriefcaseDoesNotBelongToUser = 102408,
241
- AnotherUserPushing = 102409,
242
- ChangeSetAlreadyExists = 102410,
243
- ChangeSetDoesNotExist = 102411,
244
- FileIsNotUploaded = 102412,
245
- iModelIsNotInitialized = 102413,
246
- ChangeSetPointsToBadSeed = 102414,
247
- OperationFailed = 102415,
248
- PullIsRequired = 102416,
249
- MaximumNumberOfBriefcasesPerUser = 102417,
250
- MaximumNumberOfBriefcasesPerUserPerMinute = 102418,
251
- DatabaseTemporarilyLocked = 102419,
252
- iModelIsLocked = 102420,
253
- CodesExist = 102421,
254
- LocksExist = 102422,
255
- iModelAlreadyExists = 102423,
256
- iModelDoesNotExist = 102424,
257
- FileDoesNotExist = 102425,
258
- FileAlreadyExists = 102426,
259
- LockDoesNotExist = 102427,
260
- LockOwnedByAnotherBriefcase = 102428,
261
- CodeStateInvalid = 102429,
262
- CodeReservedByAnotherBriefcase = 102430,
263
- CodeDoesNotExist = 102431,
264
- EventTypeDoesNotExist = 102432,
265
- EventSubscriptionDoesNotExist = 102433,
266
- EventSubscriptionAlreadyExists = 102434,
267
- ITwinIdIsNotSpecified = 102435,
268
- FailedToGetITwinPermissions = 102436,
269
- FailedToGetITwinMembers = 102437,
270
- ChangeSetAlreadyHasVersion = 102438,
271
- VersionAlreadyExists = 102439,
272
- JobSchedulingFailed = 102440,
273
- ConflictsAggregate = 102441,
274
- FailedToGetITwinById = 102442,
275
- DatabaseOperationFailed = 102443,
276
- SeedFileInitializationFailed = 102444,
277
- FailedToGetAssetPermissions = 102445,
278
- FailedToGetAssetMembers = 102446,
279
- ITwinDoesNotExist = 102447,
280
- LockChunkDoesNotExist = 102449,
281
- CheckpointAlreadyExists = 102450,
282
- CheckpointDoesNotExist = 102451,
283
- UndefinedArgumentError = 102657,
284
- InvalidArgumentError = 102658,
285
- MissingDownloadUrlError = 102659,
286
- NotSupportedInBrowser = 102660,
287
- FileHandlerNotSet = 102661,
288
- FileNotFound = 102662,
289
- InitializationTimeout = 102663
290
- }
291
- /** GeoServiceStatus errors
292
- * @public
293
- */
294
- export declare enum GeoServiceStatus {
295
- Success = 0,
296
- GEOSERVICESTATUS_BASE = 147456,
297
- NoGeoLocation = 65602,
298
- OutOfUsefulRange = 147457,
299
- OutOfMathematicalDomain = 147458,
300
- NoDatumConverter = 147459,
301
- VerticalDatumConvertError = 147460,
302
- CSMapError = 147461,
303
- Pending = 147462
304
- }
305
- /** Error status from various reality data operations
306
- * @alpha
307
- */
308
- export declare enum RealityDataStatus {
309
- Success = 0,
310
- REALITYDATA_ERROR_BASE = 151552,
311
- InvalidData = 151553
312
- }
313
- /** When you want to associate an explanatory message with an error status value.
314
- * @beta Internal?
315
- */
316
- export interface StatusCodeWithMessage<ErrorCodeType> {
317
- status: ErrorCodeType;
318
- message: string;
319
- }
320
- /** A function that returns a metadata object for a [[BentleyError]].
321
- * 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.
322
- * @public
323
- */
324
- export declare type GetMetaDataFunction = () => object | undefined;
325
- /** Optional metadata attached to a [[BentleyError]]. May either be an object or a function that returns an object.
326
- * If this exception is logged and metadata is present, the metaData object is attached to the log entry via `JSON.stringify`
327
- * @public
328
- */
329
- export declare type LoggingMetaData = GetMetaDataFunction | object | undefined;
330
- interface ErrorProps {
331
- message: string;
332
- stack?: string;
333
- metadata?: object;
334
- }
335
- /** Base exception class for iTwin.js exceptions.
336
- * @public
337
- */
338
- export declare class BentleyError extends Error {
339
- errorNumber: number;
340
- private readonly _metaData;
341
- /**
342
- * @param errorNumber The a number that identifies of the problem.
343
- * @param message message that describes the problem (should not be localized).
344
- * @param metaData metaData about the exception.
345
- */
346
- constructor(errorNumber: number, message?: string, metaData?: LoggingMetaData);
347
- /** Returns true if this BentleyError includes (optional) metadata. */
348
- get hasMetaData(): boolean;
349
- /** get the meta data associated with this BentleyError, if any. */
350
- getMetaData(): object | undefined;
351
- /** get the metadata object associated with an ExceptionMetaData, if any. */
352
- static getMetaData(metaData: LoggingMetaData): object | undefined;
353
- /** This function returns the name of each error status. Override this method to handle more error status codes. */
354
- protected _initName(): string;
355
- /** Use run-time type checking to safely get a useful string summary of an unknown error value, or `""` if none exists.
356
- * @note It's recommended to use this function in `catch` clauses, where a caught value cannot be assumed to be `instanceof Error`
357
- * @public
358
- */
359
- static getErrorMessage(error: unknown): string;
360
- /** Use run-time type checking to safely get the call stack of an unknown error value, if possible.
361
- * @note It's recommended to use this function in `catch` clauses, where a caught value cannot be assumed to be `instanceof Error`
362
- * @public
363
- */
364
- static getErrorStack(error: unknown): string | undefined;
365
- /** Use run-time type checking to safely get the metadata with an unknown error value, if possible.
366
- * @note It's recommended to use this function in `catch` clauses, where a caught value cannot be assumed to be `instanceof BentleyError`
367
- * @see [[BentleyError.getMetaData]]
368
- * @public
369
- */
370
- static getErrorMetadata(error: unknown): object | undefined;
371
- /** Returns a new `ErrorProps` object representing an unknown error value. Useful for logging or wrapping/re-throwing caught errors.
372
- * @note Unlike `Error` objects (which lose messages and call stacks when serialized to JSON), objects
373
- * returned by this are plain old JavaScript objects, and can be easily logged/serialized to JSON.
374
- * @public
375
- */
376
- static getErrorProps(error: unknown): ErrorProps;
377
- }
378
- export {};
1
+ /** @packageDocumentation
2
+ * @module Errors
3
+ */
4
+ /** Standard status code.
5
+ * This status code should be rarely used.
6
+ * Prefer to throw an exception to indicate an error, rather than returning a special status code.
7
+ * If a status code is to be returned, prefer to return a more specific error status type such as IModelStatus or DbResult.
8
+ * @public
9
+ */
10
+ export declare enum BentleyStatus {
11
+ SUCCESS = 0,
12
+ ERROR = 32768
13
+ }
14
+ /** Status codes that are used in conjunction with [[BentleyError]].
15
+ * 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.
16
+ * @public
17
+ */
18
+ export declare enum IModelStatus {
19
+ IMODEL_ERROR_BASE = 65536,
20
+ Success = 0,
21
+ AlreadyLoaded = 65537,
22
+ AlreadyOpen = 65538,
23
+ BadArg = 65539,
24
+ BadElement = 65540,
25
+ BadModel = 65541,
26
+ BadRequest = 65542,
27
+ BadSchema = 65543,
28
+ CannotUndo = 65544,
29
+ CodeNotReserved = 65545,
30
+ DeletionProhibited = 65546,
31
+ DuplicateCode = 65547,
32
+ DuplicateName = 65548,
33
+ ElementBlockedChange = 65549,
34
+ FileAlreadyExists = 65550,
35
+ FileNotFound = 65551,
36
+ FileNotLoaded = 65552,
37
+ ForeignKeyConstraint = 65553,
38
+ IdExists = 65554,
39
+ InDynamicTransaction = 65555,
40
+ InvalidCategory = 65556,
41
+ InvalidCode = 65557,
42
+ InvalidCodeSpec = 65558,
43
+ InvalidId = 65559,
44
+ InvalidName = 65560,
45
+ InvalidParent = 65561,
46
+ InvalidProfileVersion = 65562,
47
+ IsCreatingChangeSet = 65563,
48
+ LockNotHeld = 65564,
49
+ Mismatch2d3d = 65565,
50
+ MismatchGcs = 65566,
51
+ MissingDomain = 65567,
52
+ MissingHandler = 65568,
53
+ MissingId = 65569,
54
+ NoGeometry = 65570,
55
+ NoMultiTxnOperation = 65571,
56
+ NotEnabled = 65573,
57
+ NotFound = 65574,
58
+ NotOpen = 65575,
59
+ NotOpenForWrite = 65576,
60
+ NotSameUnitBase = 65577,
61
+ NothingToRedo = 65578,
62
+ NothingToUndo = 65579,
63
+ ParentBlockedChange = 65580,
64
+ ReadError = 65581,
65
+ ReadOnly = 65582,
66
+ ReadOnlyDomain = 65583,
67
+ RepositoryManagerError = 65584,
68
+ SQLiteError = 65585,
69
+ TransactionActive = 65586,
70
+ UnitsMissing = 65587,
71
+ UnknownFormat = 65588,
72
+ UpgradeFailed = 65589,
73
+ ValidationFailed = 65590,
74
+ VersionTooNew = 65591,
75
+ VersionTooOld = 65592,
76
+ ViewNotFound = 65593,
77
+ WriteError = 65594,
78
+ WrongClass = 65595,
79
+ WrongIModel = 65596,
80
+ WrongDomain = 65597,
81
+ WrongElement = 65598,
82
+ WrongHandler = 65599,
83
+ WrongModel = 65600,
84
+ ConstraintNotUnique = 65601,
85
+ NoGeoLocation = 65602,
86
+ ServerTimeout = 65603,
87
+ NoContent = 65604,
88
+ NotRegistered = 65605,
89
+ FunctionNotFound = 65606,
90
+ NoActiveCommand = 65607
91
+ }
92
+ /** Error statuses produced by various briefcase operations, typically encountered as the `errorNumber` of an [IModelError]($common).
93
+ * @public
94
+ */
95
+ export declare enum BriefcaseStatus {
96
+ BRIEFCASE_STATUS_BASE = 131072,
97
+ CannotAcquire = 131072,
98
+ CannotDownload = 131073,
99
+ CannotUpload = 131074,
100
+ CannotCopy = 131075,
101
+ CannotDelete = 131076,
102
+ VersionNotFound = 131077,
103
+ CannotApplyChanges = 131078,
104
+ DownloadCancelled = 131079,
105
+ ContainsDeletedChangeSets = 131080
106
+ }
107
+ /** RpcInterface status codes
108
+ * @beta
109
+ */
110
+ export declare enum RpcInterfaceStatus {
111
+ Success = 0,
112
+ RPC_INTERFACE_ERROR_BASE = 135168,
113
+ /** The RpcInterface implemented by the server is incompatible with the interface requested by the client. */
114
+ IncompatibleVersion = 135168
115
+ }
116
+ /** Error statuses produced by various Changeset operations, typically encountered as the `errorNumber` of an [IModelError]($common).
117
+ * @public
118
+ */
119
+ export declare enum ChangeSetStatus {
120
+ Success = 0,
121
+ CHANGESET_ERROR_BASE = 90112,
122
+ /** Error applying a change set when reversing or reinstating it */
123
+ ApplyError = 90113,
124
+ /** Change tracking has not been enabled. The ChangeSet API mandates this. */
125
+ ChangeTrackingNotEnabled = 90114,
126
+ /** Contents of the change stream are corrupted and does not match the ChangeSet */
127
+ CorruptedChangeStream = 90115,
128
+ /** File containing the changes to the change set is not found */
129
+ FileNotFound = 90116,
130
+ /** Error writing the contents of the change set to the backing change stream file */
131
+ FileWriteError = 90117,
132
+ /** Cannot perform the operation since the Db has local changes */
133
+ HasLocalChanges = 90118,
134
+ /** Cannot perform the operation since current transaction has uncommitted changes */
135
+ HasUncommittedChanges = 90119,
136
+ /** Invalid ChangeSet Id */
137
+ InvalidId = 90120,
138
+ /** Invalid version of the change set */
139
+ InvalidVersion = 90121,
140
+ /** Cannot perform the operation since system is in the middle of a dynamic transaction */
141
+ InDynamicTransaction = 90122,
142
+ /** Cannot perform operation since system is in the middle of a creating a change set */
143
+ IsCreatingChangeSet = 90123,
144
+ /** Cannot perform operation since the system is not creating a change set */
145
+ IsNotCreatingChangeSet = 90124,
146
+ /** Error propagating the changes after the merge */
147
+ MergePropagationError = 90125,
148
+ /** No change sets to merge */
149
+ NothingToMerge = 90126,
150
+ /** No transactions are available to create a change set */
151
+ NoTransactions = 90127,
152
+ /** Parent change set of the Db does not match the parent id of the change set */
153
+ ParentMismatch = 90128,
154
+ /** Error performing a SQLite operation on the Db */
155
+ SQLiteError = 90129,
156
+ /** ChangeSet originated in a different Db */
157
+ WrongDgnDb = 90130,
158
+ /** Could not open the DgnDb to merge change set */
159
+ CouldNotOpenDgnDb = 90131,
160
+ /** Cannot merge changes in in an open DgnDb. Close the DgnDb, and process the operation when it is opened. */
161
+ MergeSchemaChangesOnOpen = 90132,
162
+ /** Cannot reverse or reinstate schema changes. */
163
+ ReverseOrReinstateSchemaChanges = 90133,
164
+ /** Cannot process changes schema changes in an open DgnDb. Close the DgnDb, and process the operation when it is opened. */
165
+ ProcessSchemaChangesOnOpen = 90134,
166
+ /** Cannot merge changes into a Readonly DgnDb. */
167
+ CannotMergeIntoReadonly = 90135,
168
+ /** Cannot merge changes into a Master DgnDb. */
169
+ CannotMergeIntoMaster = 90136,
170
+ /** Cannot merge changes into a DgnDb that has reversed change sets. */
171
+ CannotMergeIntoReversed = 90137,
172
+ /** ChangeSet(s) download was cancelled. */
173
+ DownloadCancelled = 90138
174
+ }
175
+ /** Return codes for methods which perform repository management operations
176
+ * @internal
177
+ */
178
+ export declare enum RepositoryStatus {
179
+ Success = 0,
180
+ /** The repository server did not respond to a request */
181
+ ServerUnavailable = 86017,
182
+ /** A requested lock was already held by another briefcase */
183
+ LockAlreadyHeld = 86018,
184
+ /** Failed to sync briefcase manager with server */
185
+ SyncError = 86019,
186
+ /** Response from server not understood */
187
+ InvalidResponse = 86020,
188
+ /** An operation requires local changes to be committed or abandoned */
189
+ PendingTransactions = 86021,
190
+ /** A lock cannot be relinquished because the associated object has been modified */
191
+ LockUsed = 86022,
192
+ /** An operation required creation of a ChangeSet, which failed */
193
+ CannotCreateChangeSet = 86023,
194
+ /** Request to server not understood */
195
+ InvalidRequest = 86024,
196
+ /** A change set committed to the server must be integrated into the briefcase before the operation can be completed */
197
+ ChangeSetRequired = 86025,
198
+ /** A requested DgnCode is reserved by another briefcase or in use */
199
+ CodeUnavailable = 86026,
200
+ /** A DgnCode cannot be released because it has not been reserved by the requesting briefcase */
201
+ CodeNotReserved = 86027,
202
+ /** A DgnCode cannot be relinquished because it has been used locally */
203
+ CodeUsed = 86028,
204
+ /** A required lock is not held by this briefcase */
205
+ LockNotHeld = 86029,
206
+ /** Repository is currently locked, no changes allowed */
207
+ RepositoryIsLocked = 86030,
208
+ /** Channel write constraint violation, such as an attempt to write outside the designated channel. */
209
+ ChannelConstraintViolation = 86031
210
+ }
211
+ /** Status from returned HTTP status code
212
+ * @beta
213
+ */
214
+ export declare enum HttpStatus {
215
+ /** 2xx Success */
216
+ Success = 0,
217
+ /** 1xx Informational responses */
218
+ Info = 94209,
219
+ /** 3xx Redirection */
220
+ Redirection = 94210,
221
+ /** 4xx Client errors */
222
+ ClientError = 94211,
223
+ /** 5xx Server errors */
224
+ ServerError = 94212
225
+ }
226
+ /** Statuses produced by APIs that interact with iModelHub, typically encountered as the `errorNumber` of an [IModelError]($common).
227
+ * @public
228
+ */
229
+ export declare enum IModelHubStatus {
230
+ Success = 0,
231
+ IMODELHUBERROR_BASE = 102400,
232
+ IMODELHUBERROR_REQUESTERRORBASE = 102656,
233
+ Unknown = 102401,
234
+ MissingRequiredProperties = 102402,
235
+ InvalidPropertiesValues = 102403,
236
+ UserDoesNotHavePermission = 102404,
237
+ UserDoesNotHaveAccess = 102405,
238
+ InvalidBriefcase = 102406,
239
+ BriefcaseDoesNotExist = 102407,
240
+ BriefcaseDoesNotBelongToUser = 102408,
241
+ AnotherUserPushing = 102409,
242
+ ChangeSetAlreadyExists = 102410,
243
+ ChangeSetDoesNotExist = 102411,
244
+ FileIsNotUploaded = 102412,
245
+ iModelIsNotInitialized = 102413,
246
+ ChangeSetPointsToBadSeed = 102414,
247
+ OperationFailed = 102415,
248
+ PullIsRequired = 102416,
249
+ MaximumNumberOfBriefcasesPerUser = 102417,
250
+ MaximumNumberOfBriefcasesPerUserPerMinute = 102418,
251
+ DatabaseTemporarilyLocked = 102419,
252
+ iModelIsLocked = 102420,
253
+ CodesExist = 102421,
254
+ LocksExist = 102422,
255
+ iModelAlreadyExists = 102423,
256
+ iModelDoesNotExist = 102424,
257
+ FileDoesNotExist = 102425,
258
+ FileAlreadyExists = 102426,
259
+ LockDoesNotExist = 102427,
260
+ LockOwnedByAnotherBriefcase = 102428,
261
+ CodeStateInvalid = 102429,
262
+ CodeReservedByAnotherBriefcase = 102430,
263
+ CodeDoesNotExist = 102431,
264
+ EventTypeDoesNotExist = 102432,
265
+ EventSubscriptionDoesNotExist = 102433,
266
+ EventSubscriptionAlreadyExists = 102434,
267
+ ITwinIdIsNotSpecified = 102435,
268
+ FailedToGetITwinPermissions = 102436,
269
+ FailedToGetITwinMembers = 102437,
270
+ ChangeSetAlreadyHasVersion = 102438,
271
+ VersionAlreadyExists = 102439,
272
+ JobSchedulingFailed = 102440,
273
+ ConflictsAggregate = 102441,
274
+ FailedToGetITwinById = 102442,
275
+ DatabaseOperationFailed = 102443,
276
+ SeedFileInitializationFailed = 102444,
277
+ FailedToGetAssetPermissions = 102445,
278
+ FailedToGetAssetMembers = 102446,
279
+ ITwinDoesNotExist = 102447,
280
+ LockChunkDoesNotExist = 102449,
281
+ CheckpointAlreadyExists = 102450,
282
+ CheckpointDoesNotExist = 102451,
283
+ UndefinedArgumentError = 102657,
284
+ InvalidArgumentError = 102658,
285
+ MissingDownloadUrlError = 102659,
286
+ NotSupportedInBrowser = 102660,
287
+ FileHandlerNotSet = 102661,
288
+ FileNotFound = 102662,
289
+ InitializationTimeout = 102663
290
+ }
291
+ /** GeoServiceStatus errors
292
+ * @public
293
+ */
294
+ export declare enum GeoServiceStatus {
295
+ Success = 0,
296
+ GEOSERVICESTATUS_BASE = 147456,
297
+ NoGeoLocation = 65602,
298
+ OutOfUsefulRange = 147457,
299
+ OutOfMathematicalDomain = 147458,
300
+ NoDatumConverter = 147459,
301
+ VerticalDatumConvertError = 147460,
302
+ CSMapError = 147461,
303
+ Pending = 147462
304
+ }
305
+ /** Error status from various reality data operations
306
+ * @alpha
307
+ */
308
+ export declare enum RealityDataStatus {
309
+ Success = 0,
310
+ REALITYDATA_ERROR_BASE = 151552,
311
+ InvalidData = 151553
312
+ }
313
+ /** When you want to associate an explanatory message with an error status value.
314
+ * @internal
315
+ */
316
+ export interface StatusCodeWithMessage<ErrorCodeType> {
317
+ status: ErrorCodeType;
318
+ message: string;
319
+ }
320
+ /** A function that returns a metadata object for a [[BentleyError]].
321
+ * 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.
322
+ * @public
323
+ */
324
+ export declare type GetMetaDataFunction = () => object | undefined;
325
+ /** Optional metadata attached to a [[BentleyError]]. May either be an object or a function that returns an object.
326
+ * If this exception is logged and metadata is present, the metaData object is attached to the log entry via `JSON.stringify`
327
+ * @public
328
+ */
329
+ export declare type LoggingMetaData = GetMetaDataFunction | object | undefined;
330
+ interface ErrorProps {
331
+ message: string;
332
+ stack?: string;
333
+ metadata?: object;
334
+ }
335
+ /** Base exception class for iTwin.js exceptions.
336
+ * @public
337
+ */
338
+ export declare class BentleyError extends Error {
339
+ errorNumber: number;
340
+ private readonly _metaData;
341
+ /**
342
+ * @param errorNumber The a number that identifies of the problem.
343
+ * @param message message that describes the problem (should not be localized).
344
+ * @param metaData metaData about the exception.
345
+ */
346
+ constructor(errorNumber: number, message?: string, metaData?: LoggingMetaData);
347
+ /** Returns true if this BentleyError includes (optional) metadata. */
348
+ get hasMetaData(): boolean;
349
+ /** get the meta data associated with this BentleyError, if any. */
350
+ getMetaData(): object | undefined;
351
+ /** get the metadata object associated with an ExceptionMetaData, if any. */
352
+ static getMetaData(metaData: LoggingMetaData): object | undefined;
353
+ /** This function returns the name of each error status. Override this method to handle more error status codes. */
354
+ protected _initName(): string;
355
+ /** Use run-time type checking to safely get a useful string summary of an unknown error value, or `""` if none exists.
356
+ * @note It's recommended to use this function in `catch` clauses, where a caught value cannot be assumed to be `instanceof Error`
357
+ * @public
358
+ */
359
+ static getErrorMessage(error: unknown): string;
360
+ /** Use run-time type checking to safely get the call stack of an unknown error value, if possible.
361
+ * @note It's recommended to use this function in `catch` clauses, where a caught value cannot be assumed to be `instanceof Error`
362
+ * @public
363
+ */
364
+ static getErrorStack(error: unknown): string | undefined;
365
+ /** Use run-time type checking to safely get the metadata with an unknown error value, if possible.
366
+ * @note It's recommended to use this function in `catch` clauses, where a caught value cannot be assumed to be `instanceof BentleyError`
367
+ * @see [[BentleyError.getMetaData]]
368
+ * @public
369
+ */
370
+ static getErrorMetadata(error: unknown): object | undefined;
371
+ /** Returns a new `ErrorProps` object representing an unknown error value. Useful for logging or wrapping/re-throwing caught errors.
372
+ * @note Unlike `Error` objects (which lose messages and call stacks when serialized to JSON), objects
373
+ * returned by this are plain old JavaScript objects, and can be easily logged/serialized to JSON.
374
+ * @public
375
+ */
376
+ static getErrorProps(error: unknown): ErrorProps;
377
+ }
378
+ export {};
379
379
  //# sourceMappingURL=BentleyError.d.ts.map