@itwin/core-bentley 4.0.0-dev.22 → 4.0.0-dev.23

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 (219) hide show
  1. package/lib/cjs/AccessToken.d.ts +10 -10
  2. package/lib/cjs/AccessToken.js +9 -9
  3. package/lib/cjs/AccessToken.js.map +1 -1
  4. package/lib/cjs/Assert.d.ts +25 -25
  5. package/lib/cjs/Assert.js +45 -45
  6. package/lib/cjs/Assert.js.map +1 -1
  7. package/lib/cjs/BeEvent.d.ts +81 -81
  8. package/lib/cjs/BeEvent.js +156 -156
  9. package/lib/cjs/BeEvent.js.map +1 -1
  10. package/lib/cjs/BeSQLite.d.ts +170 -170
  11. package/lib/cjs/BeSQLite.js +183 -183
  12. package/lib/cjs/BeSQLite.js.map +1 -1
  13. package/lib/cjs/BentleyError.d.ts +378 -378
  14. package/lib/cjs/BentleyError.js +702 -702
  15. package/lib/cjs/BentleyError.js.map +1 -1
  16. package/lib/cjs/BentleyLoggerCategory.d.ts +11 -11
  17. package/lib/cjs/BentleyLoggerCategory.js +19 -19
  18. package/lib/cjs/BentleyLoggerCategory.js.map +1 -1
  19. package/lib/cjs/ByteStream.d.ts +110 -110
  20. package/lib/cjs/ByteStream.js +159 -159
  21. package/lib/cjs/ByteStream.js.map +1 -1
  22. package/lib/cjs/ClassUtils.d.ts +14 -14
  23. package/lib/cjs/ClassUtils.js +27 -27
  24. package/lib/cjs/ClassUtils.js.map +1 -1
  25. package/lib/cjs/Compare.d.ts +47 -47
  26. package/lib/cjs/Compare.js +75 -75
  27. package/lib/cjs/Compare.js.map +1 -1
  28. package/lib/cjs/CompressedId64Set.d.ts +134 -134
  29. package/lib/cjs/CompressedId64Set.js +428 -428
  30. package/lib/cjs/CompressedId64Set.js.map +1 -1
  31. package/lib/cjs/Dictionary.d.ts +125 -125
  32. package/lib/cjs/Dictionary.js +203 -203
  33. package/lib/cjs/Dictionary.js.map +1 -1
  34. package/lib/cjs/Disposable.d.ts +80 -80
  35. package/lib/cjs/Disposable.js +120 -120
  36. package/lib/cjs/Disposable.js.map +1 -1
  37. package/lib/cjs/Id.d.ts +285 -285
  38. package/lib/cjs/Id.js +643 -643
  39. package/lib/cjs/Id.js.map +1 -1
  40. package/lib/cjs/IndexMap.d.ts +65 -65
  41. package/lib/cjs/IndexMap.js +91 -91
  42. package/lib/cjs/IndexMap.js.map +1 -1
  43. package/lib/cjs/JsonSchema.d.ts +77 -77
  44. package/lib/cjs/JsonSchema.js +9 -9
  45. package/lib/cjs/JsonSchema.js.map +1 -1
  46. package/lib/cjs/JsonUtils.d.ts +78 -78
  47. package/lib/cjs/JsonUtils.js +151 -151
  48. package/lib/cjs/JsonUtils.js.map +1 -1
  49. package/lib/cjs/LRUMap.d.ts +129 -129
  50. package/lib/cjs/LRUMap.js +333 -333
  51. package/lib/cjs/LRUMap.js.map +1 -1
  52. package/lib/cjs/Logger.d.ts +143 -143
  53. package/lib/cjs/Logger.js +258 -258
  54. package/lib/cjs/Logger.js.map +1 -1
  55. package/lib/cjs/ObservableSet.d.ts +23 -23
  56. package/lib/cjs/ObservableSet.js +51 -51
  57. package/lib/cjs/ObservableSet.js.map +1 -1
  58. package/lib/cjs/OneAtATimeAction.d.ts +31 -31
  59. package/lib/cjs/OneAtATimeAction.js +94 -94
  60. package/lib/cjs/OneAtATimeAction.js.map +1 -1
  61. package/lib/cjs/OrderedId64Iterable.d.ts +74 -74
  62. package/lib/cjs/OrderedId64Iterable.js +235 -235
  63. package/lib/cjs/OrderedId64Iterable.js.map +1 -1
  64. package/lib/cjs/OrderedSet.d.ts +40 -40
  65. package/lib/cjs/OrderedSet.js +64 -64
  66. package/lib/cjs/OrderedSet.js.map +1 -1
  67. package/lib/cjs/PriorityQueue.d.ts +70 -70
  68. package/lib/cjs/PriorityQueue.js +140 -140
  69. package/lib/cjs/PriorityQueue.js.map +1 -1
  70. package/lib/cjs/ProcessDetector.d.ts +59 -59
  71. package/lib/cjs/ProcessDetector.js +71 -71
  72. package/lib/cjs/ProcessDetector.js.map +1 -1
  73. package/lib/cjs/SortedArray.d.ts +236 -232
  74. package/lib/cjs/SortedArray.d.ts.map +1 -1
  75. package/lib/cjs/SortedArray.js +315 -303
  76. package/lib/cjs/SortedArray.js.map +1 -1
  77. package/lib/cjs/StatusCategory.d.ts +30 -30
  78. package/lib/cjs/StatusCategory.js +460 -460
  79. package/lib/cjs/StatusCategory.js.map +1 -1
  80. package/lib/cjs/StringUtils.d.ts +22 -22
  81. package/lib/cjs/StringUtils.js +148 -148
  82. package/lib/cjs/StringUtils.js.map +1 -1
  83. package/lib/cjs/Time.d.ts +122 -122
  84. package/lib/cjs/Time.js +152 -152
  85. package/lib/cjs/Time.js.map +1 -1
  86. package/lib/cjs/Tracing.d.ts +40 -40
  87. package/lib/cjs/Tracing.js +130 -130
  88. package/lib/cjs/Tracing.js.map +1 -1
  89. package/lib/cjs/TupleKeyedMap.d.ts +36 -36
  90. package/lib/cjs/TupleKeyedMap.js +102 -102
  91. package/lib/cjs/TupleKeyedMap.js.map +1 -1
  92. package/lib/cjs/TypedArrayBuilder.d.ts +155 -155
  93. package/lib/cjs/TypedArrayBuilder.js +208 -208
  94. package/lib/cjs/TypedArrayBuilder.js.map +1 -1
  95. package/lib/cjs/UnexpectedErrors.d.ts +43 -43
  96. package/lib/cjs/UnexpectedErrors.js +68 -68
  97. package/lib/cjs/UnexpectedErrors.js.map +1 -1
  98. package/lib/cjs/UtilityTypes.d.ts +96 -96
  99. package/lib/cjs/UtilityTypes.js +40 -40
  100. package/lib/cjs/UtilityTypes.js.map +1 -1
  101. package/lib/cjs/YieldManager.d.ts +18 -18
  102. package/lib/cjs/YieldManager.js +34 -34
  103. package/lib/cjs/YieldManager.js.map +1 -1
  104. package/lib/cjs/core-bentley.d.ts +74 -74
  105. package/lib/cjs/core-bentley.js +90 -90
  106. package/lib/cjs/core-bentley.js.map +1 -1
  107. package/lib/cjs/partitionArray.d.ts +21 -21
  108. package/lib/cjs/partitionArray.js +43 -43
  109. package/lib/cjs/partitionArray.js.map +1 -1
  110. package/lib/esm/AccessToken.d.ts +10 -10
  111. package/lib/esm/AccessToken.js +8 -8
  112. package/lib/esm/AccessToken.js.map +1 -1
  113. package/lib/esm/Assert.d.ts +25 -25
  114. package/lib/esm/Assert.js +41 -41
  115. package/lib/esm/Assert.js.map +1 -1
  116. package/lib/esm/BeEvent.d.ts +81 -81
  117. package/lib/esm/BeEvent.js +150 -150
  118. package/lib/esm/BeEvent.js.map +1 -1
  119. package/lib/esm/BeSQLite.d.ts +170 -170
  120. package/lib/esm/BeSQLite.js +180 -180
  121. package/lib/esm/BeSQLite.js.map +1 -1
  122. package/lib/esm/BentleyError.d.ts +378 -378
  123. package/lib/esm/BentleyError.js +698 -698
  124. package/lib/esm/BentleyError.js.map +1 -1
  125. package/lib/esm/BentleyLoggerCategory.d.ts +11 -11
  126. package/lib/esm/BentleyLoggerCategory.js +16 -16
  127. package/lib/esm/BentleyLoggerCategory.js.map +1 -1
  128. package/lib/esm/ByteStream.d.ts +110 -110
  129. package/lib/esm/ByteStream.js +155 -155
  130. package/lib/esm/ByteStream.js.map +1 -1
  131. package/lib/esm/ClassUtils.d.ts +14 -14
  132. package/lib/esm/ClassUtils.js +22 -22
  133. package/lib/esm/ClassUtils.js.map +1 -1
  134. package/lib/esm/Compare.d.ts +47 -47
  135. package/lib/esm/Compare.js +63 -63
  136. package/lib/esm/Compare.js.map +1 -1
  137. package/lib/esm/CompressedId64Set.d.ts +134 -134
  138. package/lib/esm/CompressedId64Set.js +423 -423
  139. package/lib/esm/CompressedId64Set.js.map +1 -1
  140. package/lib/esm/Dictionary.d.ts +125 -125
  141. package/lib/esm/Dictionary.js +199 -199
  142. package/lib/esm/Dictionary.js.map +1 -1
  143. package/lib/esm/Disposable.d.ts +80 -80
  144. package/lib/esm/Disposable.js +112 -112
  145. package/lib/esm/Disposable.js.map +1 -1
  146. package/lib/esm/Id.d.ts +285 -285
  147. package/lib/esm/Id.js +639 -639
  148. package/lib/esm/Id.js.map +1 -1
  149. package/lib/esm/IndexMap.d.ts +65 -65
  150. package/lib/esm/IndexMap.js +86 -86
  151. package/lib/esm/IndexMap.js.map +1 -1
  152. package/lib/esm/JsonSchema.d.ts +77 -77
  153. package/lib/esm/JsonSchema.js +8 -8
  154. package/lib/esm/JsonSchema.js.map +1 -1
  155. package/lib/esm/JsonUtils.d.ts +78 -78
  156. package/lib/esm/JsonUtils.js +148 -148
  157. package/lib/esm/JsonUtils.js.map +1 -1
  158. package/lib/esm/LRUMap.d.ts +129 -129
  159. package/lib/esm/LRUMap.js +326 -326
  160. package/lib/esm/LRUMap.js.map +1 -1
  161. package/lib/esm/Logger.d.ts +143 -143
  162. package/lib/esm/Logger.js +253 -253
  163. package/lib/esm/Logger.js.map +1 -1
  164. package/lib/esm/ObservableSet.d.ts +23 -23
  165. package/lib/esm/ObservableSet.js +47 -47
  166. package/lib/esm/ObservableSet.js.map +1 -1
  167. package/lib/esm/OneAtATimeAction.d.ts +31 -31
  168. package/lib/esm/OneAtATimeAction.js +89 -89
  169. package/lib/esm/OneAtATimeAction.js.map +1 -1
  170. package/lib/esm/OrderedId64Iterable.d.ts +74 -74
  171. package/lib/esm/OrderedId64Iterable.js +232 -232
  172. package/lib/esm/OrderedId64Iterable.js.map +1 -1
  173. package/lib/esm/OrderedSet.d.ts +40 -40
  174. package/lib/esm/OrderedSet.js +59 -59
  175. package/lib/esm/OrderedSet.js.map +1 -1
  176. package/lib/esm/PriorityQueue.d.ts +70 -70
  177. package/lib/esm/PriorityQueue.js +136 -136
  178. package/lib/esm/PriorityQueue.js.map +1 -1
  179. package/lib/esm/ProcessDetector.d.ts +59 -59
  180. package/lib/esm/ProcessDetector.js +67 -67
  181. package/lib/esm/ProcessDetector.js.map +1 -1
  182. package/lib/esm/SortedArray.d.ts +236 -232
  183. package/lib/esm/SortedArray.d.ts.map +1 -1
  184. package/lib/esm/SortedArray.js +308 -296
  185. package/lib/esm/SortedArray.js.map +1 -1
  186. package/lib/esm/StatusCategory.d.ts +30 -30
  187. package/lib/esm/StatusCategory.js +454 -454
  188. package/lib/esm/StatusCategory.js.map +1 -1
  189. package/lib/esm/StringUtils.d.ts +22 -22
  190. package/lib/esm/StringUtils.js +142 -142
  191. package/lib/esm/StringUtils.js.map +1 -1
  192. package/lib/esm/Time.d.ts +122 -122
  193. package/lib/esm/Time.js +146 -146
  194. package/lib/esm/Time.js.map +1 -1
  195. package/lib/esm/Tracing.d.ts +40 -40
  196. package/lib/esm/Tracing.js +126 -126
  197. package/lib/esm/Tracing.js.map +1 -1
  198. package/lib/esm/TupleKeyedMap.d.ts +36 -36
  199. package/lib/esm/TupleKeyedMap.js +98 -98
  200. package/lib/esm/TupleKeyedMap.js.map +1 -1
  201. package/lib/esm/TypedArrayBuilder.d.ts +155 -155
  202. package/lib/esm/TypedArrayBuilder.js +200 -200
  203. package/lib/esm/TypedArrayBuilder.js.map +1 -1
  204. package/lib/esm/UnexpectedErrors.d.ts +43 -43
  205. package/lib/esm/UnexpectedErrors.js +64 -64
  206. package/lib/esm/UnexpectedErrors.js.map +1 -1
  207. package/lib/esm/UtilityTypes.d.ts +96 -96
  208. package/lib/esm/UtilityTypes.js +34 -34
  209. package/lib/esm/UtilityTypes.js.map +1 -1
  210. package/lib/esm/YieldManager.d.ts +18 -18
  211. package/lib/esm/YieldManager.js +30 -30
  212. package/lib/esm/YieldManager.js.map +1 -1
  213. package/lib/esm/core-bentley.d.ts +74 -74
  214. package/lib/esm/core-bentley.js +78 -78
  215. package/lib/esm/core-bentley.js.map +1 -1
  216. package/lib/esm/partitionArray.d.ts +21 -21
  217. package/lib/esm/partitionArray.js +39 -39
  218. package/lib/esm/partitionArray.js.map +1 -1
  219. package/package.json +3 -3
@@ -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 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 {};
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