@itwin/core-bentley 3.5.0-dev.11 → 3.5.0-dev.13

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 (217) hide show
  1. package/lib/cjs/AccessToken.d.ts +8 -8
  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/AsyncMutex.d.ts +26 -26
  8. package/lib/cjs/AsyncMutex.js +43 -43
  9. package/lib/cjs/AsyncMutex.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 +170 -170
  14. package/lib/cjs/BeSQLite.js +183 -183
  15. package/lib/cjs/BeSQLite.js.map +1 -1
  16. package/lib/cjs/BentleyError.d.ts +376 -376
  17. package/lib/cjs/BentleyError.js +699 -699
  18. package/lib/cjs/BentleyError.js.map +1 -1
  19. package/lib/cjs/BentleyLoggerCategory.d.ts +11 -11
  20. package/lib/cjs/BentleyLoggerCategory.js +19 -19
  21. package/lib/cjs/BentleyLoggerCategory.js.map +1 -1
  22. package/lib/cjs/ByteStream.d.ts +92 -92
  23. package/lib/cjs/ByteStream.js +133 -133
  24. package/lib/cjs/ByteStream.js.map +1 -1
  25. package/lib/cjs/ClassUtils.d.ts +14 -14
  26. package/lib/cjs/ClassUtils.js +27 -27
  27. package/lib/cjs/ClassUtils.js.map +1 -1
  28. package/lib/cjs/Compare.d.ts +47 -47
  29. package/lib/cjs/Compare.js +75 -75
  30. package/lib/cjs/Compare.js.map +1 -1
  31. package/lib/cjs/CompressedId64Set.d.ts +134 -134
  32. package/lib/cjs/CompressedId64Set.js +428 -428
  33. package/lib/cjs/CompressedId64Set.js.map +1 -1
  34. package/lib/cjs/Dictionary.d.ts +125 -125
  35. package/lib/cjs/Dictionary.js +203 -203
  36. package/lib/cjs/Dictionary.js.map +1 -1
  37. package/lib/cjs/Disposable.d.ts +80 -80
  38. package/lib/cjs/Disposable.js +120 -120
  39. package/lib/cjs/Disposable.js.map +1 -1
  40. package/lib/cjs/Id.d.ts +277 -277
  41. package/lib/cjs/Id.js +629 -629
  42. package/lib/cjs/Id.js.map +1 -1
  43. package/lib/cjs/IndexMap.d.ts +65 -65
  44. package/lib/cjs/IndexMap.js +91 -91
  45. package/lib/cjs/IndexMap.js.map +1 -1
  46. package/lib/cjs/JsonSchema.d.ts +77 -77
  47. package/lib/cjs/JsonSchema.js +9 -9
  48. package/lib/cjs/JsonSchema.js.map +1 -1
  49. package/lib/cjs/JsonUtils.d.ts +78 -78
  50. package/lib/cjs/JsonUtils.js +151 -151
  51. package/lib/cjs/JsonUtils.js.map +1 -1
  52. package/lib/cjs/LRUMap.d.ts +129 -129
  53. package/lib/cjs/LRUMap.js +333 -333
  54. package/lib/cjs/LRUMap.js.map +1 -1
  55. package/lib/cjs/Logger.d.ts +141 -141
  56. package/lib/cjs/Logger.js +254 -254
  57. package/lib/cjs/Logger.js.map +1 -1
  58. package/lib/cjs/ObservableSet.d.ts +23 -23
  59. package/lib/cjs/ObservableSet.js +51 -51
  60. package/lib/cjs/ObservableSet.js.map +1 -1
  61. package/lib/cjs/OneAtATimeAction.d.ts +31 -31
  62. package/lib/cjs/OneAtATimeAction.js +94 -94
  63. package/lib/cjs/OneAtATimeAction.js.map +1 -1
  64. package/lib/cjs/OrderedId64Iterable.d.ts +74 -74
  65. package/lib/cjs/OrderedId64Iterable.js +235 -235
  66. package/lib/cjs/OrderedId64Iterable.js.map +1 -1
  67. package/lib/cjs/OrderedSet.d.ts +40 -40
  68. package/lib/cjs/OrderedSet.js +64 -64
  69. package/lib/cjs/OrderedSet.js.map +1 -1
  70. package/lib/cjs/PriorityQueue.d.ts +70 -70
  71. package/lib/cjs/PriorityQueue.js +140 -140
  72. package/lib/cjs/PriorityQueue.js.map +1 -1
  73. package/lib/cjs/ProcessDetector.d.ts +59 -59
  74. package/lib/cjs/ProcessDetector.js +71 -71
  75. package/lib/cjs/ProcessDetector.js.map +1 -1
  76. package/lib/cjs/SortedArray.d.ts +232 -232
  77. package/lib/cjs/SortedArray.js +303 -303
  78. package/lib/cjs/SortedArray.js.map +1 -1
  79. package/lib/cjs/StatusCategory.d.ts +30 -30
  80. package/lib/cjs/StatusCategory.js +460 -460
  81. package/lib/cjs/StatusCategory.js.map +1 -1
  82. package/lib/cjs/StringUtils.d.ts +22 -22
  83. package/lib/cjs/StringUtils.js +148 -148
  84. package/lib/cjs/StringUtils.js.map +1 -1
  85. package/lib/cjs/Time.d.ts +122 -122
  86. package/lib/cjs/Time.js +152 -152
  87. package/lib/cjs/Time.js.map +1 -1
  88. package/lib/cjs/Tracing.d.ts +40 -40
  89. package/lib/cjs/Tracing.js +130 -130
  90. package/lib/cjs/Tracing.js.map +1 -1
  91. package/lib/cjs/TypedArrayBuilder.d.ts +97 -97
  92. package/lib/cjs/TypedArrayBuilder.js +134 -134
  93. package/lib/cjs/TypedArrayBuilder.js.map +1 -1
  94. package/lib/cjs/UnexpectedErrors.d.ts +43 -43
  95. package/lib/cjs/UnexpectedErrors.js +68 -68
  96. package/lib/cjs/UnexpectedErrors.js.map +1 -1
  97. package/lib/cjs/UtilityTypes.d.ts +86 -86
  98. package/lib/cjs/UtilityTypes.js +26 -26
  99. package/lib/cjs/UtilityTypes.js.map +1 -1
  100. package/lib/cjs/YieldManager.d.ts +18 -18
  101. package/lib/cjs/YieldManager.js +34 -34
  102. package/lib/cjs/YieldManager.js.map +1 -1
  103. package/lib/cjs/core-bentley.d.ts +74 -74
  104. package/lib/cjs/core-bentley.js +90 -90
  105. package/lib/cjs/core-bentley.js.map +1 -1
  106. package/lib/cjs/partitionArray.d.ts +21 -21
  107. package/lib/cjs/partitionArray.js +43 -43
  108. package/lib/cjs/partitionArray.js.map +1 -1
  109. package/lib/esm/AccessToken.d.ts +8 -8
  110. package/lib/esm/AccessToken.js +8 -8
  111. package/lib/esm/AccessToken.js.map +1 -1
  112. package/lib/esm/Assert.d.ts +25 -25
  113. package/lib/esm/Assert.js +41 -41
  114. package/lib/esm/Assert.js.map +1 -1
  115. package/lib/esm/AsyncMutex.d.ts +26 -26
  116. package/lib/esm/AsyncMutex.js +39 -39
  117. package/lib/esm/AsyncMutex.js.map +1 -1
  118. package/lib/esm/BeEvent.d.ts +81 -81
  119. package/lib/esm/BeEvent.js +150 -150
  120. package/lib/esm/BeEvent.js.map +1 -1
  121. package/lib/esm/BeSQLite.d.ts +170 -170
  122. package/lib/esm/BeSQLite.js +180 -180
  123. package/lib/esm/BeSQLite.js.map +1 -1
  124. package/lib/esm/BentleyError.d.ts +376 -376
  125. package/lib/esm/BentleyError.js +695 -695
  126. package/lib/esm/BentleyError.js.map +1 -1
  127. package/lib/esm/BentleyLoggerCategory.d.ts +11 -11
  128. package/lib/esm/BentleyLoggerCategory.js +16 -16
  129. package/lib/esm/BentleyLoggerCategory.js.map +1 -1
  130. package/lib/esm/ByteStream.d.ts +92 -92
  131. package/lib/esm/ByteStream.js +129 -129
  132. package/lib/esm/ByteStream.js.map +1 -1
  133. package/lib/esm/ClassUtils.d.ts +14 -14
  134. package/lib/esm/ClassUtils.js +22 -22
  135. package/lib/esm/ClassUtils.js.map +1 -1
  136. package/lib/esm/Compare.d.ts +47 -47
  137. package/lib/esm/Compare.js +63 -63
  138. package/lib/esm/Compare.js.map +1 -1
  139. package/lib/esm/CompressedId64Set.d.ts +134 -134
  140. package/lib/esm/CompressedId64Set.js +423 -423
  141. package/lib/esm/CompressedId64Set.js.map +1 -1
  142. package/lib/esm/Dictionary.d.ts +125 -125
  143. package/lib/esm/Dictionary.js +199 -199
  144. package/lib/esm/Dictionary.js.map +1 -1
  145. package/lib/esm/Disposable.d.ts +80 -80
  146. package/lib/esm/Disposable.js +112 -112
  147. package/lib/esm/Disposable.js.map +1 -1
  148. package/lib/esm/Id.d.ts +277 -277
  149. package/lib/esm/Id.js +625 -625
  150. package/lib/esm/Id.js.map +1 -1
  151. package/lib/esm/IndexMap.d.ts +65 -65
  152. package/lib/esm/IndexMap.js +86 -86
  153. package/lib/esm/IndexMap.js.map +1 -1
  154. package/lib/esm/JsonSchema.d.ts +77 -77
  155. package/lib/esm/JsonSchema.js +8 -8
  156. package/lib/esm/JsonSchema.js.map +1 -1
  157. package/lib/esm/JsonUtils.d.ts +78 -78
  158. package/lib/esm/JsonUtils.js +148 -148
  159. package/lib/esm/JsonUtils.js.map +1 -1
  160. package/lib/esm/LRUMap.d.ts +129 -129
  161. package/lib/esm/LRUMap.js +326 -326
  162. package/lib/esm/LRUMap.js.map +1 -1
  163. package/lib/esm/Logger.d.ts +141 -141
  164. package/lib/esm/Logger.js +249 -249
  165. package/lib/esm/Logger.js.map +1 -1
  166. package/lib/esm/ObservableSet.d.ts +23 -23
  167. package/lib/esm/ObservableSet.js +47 -47
  168. package/lib/esm/ObservableSet.js.map +1 -1
  169. package/lib/esm/OneAtATimeAction.d.ts +31 -31
  170. package/lib/esm/OneAtATimeAction.js +89 -89
  171. package/lib/esm/OneAtATimeAction.js.map +1 -1
  172. package/lib/esm/OrderedId64Iterable.d.ts +74 -74
  173. package/lib/esm/OrderedId64Iterable.js +232 -232
  174. package/lib/esm/OrderedId64Iterable.js.map +1 -1
  175. package/lib/esm/OrderedSet.d.ts +40 -40
  176. package/lib/esm/OrderedSet.js +59 -59
  177. package/lib/esm/OrderedSet.js.map +1 -1
  178. package/lib/esm/PriorityQueue.d.ts +70 -70
  179. package/lib/esm/PriorityQueue.js +136 -136
  180. package/lib/esm/PriorityQueue.js.map +1 -1
  181. package/lib/esm/ProcessDetector.d.ts +59 -59
  182. package/lib/esm/ProcessDetector.js +67 -67
  183. package/lib/esm/ProcessDetector.js.map +1 -1
  184. package/lib/esm/SortedArray.d.ts +232 -232
  185. package/lib/esm/SortedArray.js +296 -296
  186. package/lib/esm/SortedArray.js.map +1 -1
  187. package/lib/esm/StatusCategory.d.ts +30 -30
  188. package/lib/esm/StatusCategory.js +454 -454
  189. package/lib/esm/StatusCategory.js.map +1 -1
  190. package/lib/esm/StringUtils.d.ts +22 -22
  191. package/lib/esm/StringUtils.js +142 -142
  192. package/lib/esm/StringUtils.js.map +1 -1
  193. package/lib/esm/Time.d.ts +122 -122
  194. package/lib/esm/Time.js +146 -146
  195. package/lib/esm/Time.js.map +1 -1
  196. package/lib/esm/Tracing.d.ts +40 -40
  197. package/lib/esm/Tracing.js +126 -126
  198. package/lib/esm/Tracing.js.map +1 -1
  199. package/lib/esm/TypedArrayBuilder.d.ts +97 -97
  200. package/lib/esm/TypedArrayBuilder.js +127 -127
  201. package/lib/esm/TypedArrayBuilder.js.map +1 -1
  202. package/lib/esm/UnexpectedErrors.d.ts +43 -43
  203. package/lib/esm/UnexpectedErrors.js +64 -64
  204. package/lib/esm/UnexpectedErrors.js.map +1 -1
  205. package/lib/esm/UtilityTypes.d.ts +86 -86
  206. package/lib/esm/UtilityTypes.js +21 -21
  207. package/lib/esm/UtilityTypes.js.map +1 -1
  208. package/lib/esm/YieldManager.d.ts +18 -18
  209. package/lib/esm/YieldManager.js +30 -30
  210. package/lib/esm/YieldManager.js.map +1 -1
  211. package/lib/esm/core-bentley.d.ts +74 -74
  212. package/lib/esm/core-bentley.js +78 -78
  213. package/lib/esm/core-bentley.js.map +1 -1
  214. package/lib/esm/partitionArray.d.ts +21 -21
  215. package/lib/esm/partitionArray.js +39 -39
  216. package/lib/esm/partitionArray.js.map +1 -1
  217. package/package.json +3 -3
@@ -1,377 +1,377 @@
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
- }
173
- /** Return codes for methods which perform repository management operations
174
- * @beta Should these be internal?
175
- */
176
- export declare enum RepositoryStatus {
177
- Success = 0,
178
- /** The repository server did not respond to a request */
179
- ServerUnavailable = 86017,
180
- /** A requested lock was already held by another briefcase */
181
- LockAlreadyHeld = 86018,
182
- /** Failed to sync briefcase manager with server */
183
- SyncError = 86019,
184
- /** Response from server not understood */
185
- InvalidResponse = 86020,
186
- /** An operation requires local changes to be committed or abandoned */
187
- PendingTransactions = 86021,
188
- /** A lock cannot be relinquished because the associated object has been modified */
189
- LockUsed = 86022,
190
- /** An operation required creation of a ChangeSet, which failed */
191
- CannotCreateChangeSet = 86023,
192
- /** Request to server not understood */
193
- InvalidRequest = 86024,
194
- /** A change set committed to the server must be integrated into the briefcase before the operation can be completed */
195
- ChangeSetRequired = 86025,
196
- /** A requested DgnCode is reserved by another briefcase or in use */
197
- CodeUnavailable = 86026,
198
- /** A DgnCode cannot be released because it has not been reserved by the requesting briefcase */
199
- CodeNotReserved = 86027,
200
- /** A DgnCode cannot be relinquished because it has been used locally */
201
- CodeUsed = 86028,
202
- /** A required lock is not held by this briefcase */
203
- LockNotHeld = 86029,
204
- /** Repository is currently locked, no changes allowed */
205
- RepositoryIsLocked = 86030,
206
- /** Channel write constraint violation, such as an attempt to write outside the designated channel. */
207
- ChannelConstraintViolation = 86031
208
- }
209
- /** Status from returned HTTP status code
210
- * @beta Should these be internal?
211
- */
212
- export declare enum HttpStatus {
213
- /** 2xx Success */
214
- Success = 0,
215
- /** 1xx Informational responses */
216
- Info = 94209,
217
- /** 3xx Redirection */
218
- Redirection = 94210,
219
- /** 4xx Client errors */
220
- ClientError = 94211,
221
- /** 5xx Server errors */
222
- ServerError = 94212
223
- }
224
- /** iModelHub Services Errors
225
- * @beta Right package?
226
- */
227
- export declare enum IModelHubStatus {
228
- Success = 0,
229
- IMODELHUBERROR_BASE = 102400,
230
- IMODELHUBERROR_REQUESTERRORBASE = 102656,
231
- Unknown = 102401,
232
- MissingRequiredProperties = 102402,
233
- InvalidPropertiesValues = 102403,
234
- UserDoesNotHavePermission = 102404,
235
- UserDoesNotHaveAccess = 102405,
236
- InvalidBriefcase = 102406,
237
- BriefcaseDoesNotExist = 102407,
238
- BriefcaseDoesNotBelongToUser = 102408,
239
- AnotherUserPushing = 102409,
240
- ChangeSetAlreadyExists = 102410,
241
- ChangeSetDoesNotExist = 102411,
242
- FileIsNotUploaded = 102412,
243
- iModelIsNotInitialized = 102413,
244
- ChangeSetPointsToBadSeed = 102414,
245
- OperationFailed = 102415,
246
- PullIsRequired = 102416,
247
- MaximumNumberOfBriefcasesPerUser = 102417,
248
- MaximumNumberOfBriefcasesPerUserPerMinute = 102418,
249
- DatabaseTemporarilyLocked = 102419,
250
- iModelIsLocked = 102420,
251
- CodesExist = 102421,
252
- LocksExist = 102422,
253
- iModelAlreadyExists = 102423,
254
- iModelDoesNotExist = 102424,
255
- FileDoesNotExist = 102425,
256
- FileAlreadyExists = 102426,
257
- LockDoesNotExist = 102427,
258
- LockOwnedByAnotherBriefcase = 102428,
259
- CodeStateInvalid = 102429,
260
- CodeReservedByAnotherBriefcase = 102430,
261
- CodeDoesNotExist = 102431,
262
- EventTypeDoesNotExist = 102432,
263
- EventSubscriptionDoesNotExist = 102433,
264
- EventSubscriptionAlreadyExists = 102434,
265
- ITwinIdIsNotSpecified = 102435,
266
- FailedToGetITwinPermissions = 102436,
267
- FailedToGetITwinMembers = 102437,
268
- ChangeSetAlreadyHasVersion = 102438,
269
- VersionAlreadyExists = 102439,
270
- JobSchedulingFailed = 102440,
271
- ConflictsAggregate = 102441,
272
- FailedToGetITwinById = 102442,
273
- DatabaseOperationFailed = 102443,
274
- SeedFileInitializationFailed = 102444,
275
- FailedToGetAssetPermissions = 102445,
276
- FailedToGetAssetMembers = 102446,
277
- ITwinDoesNotExist = 102447,
278
- LockChunkDoesNotExist = 102449,
279
- CheckpointAlreadyExists = 102450,
280
- CheckpointDoesNotExist = 102451,
281
- UndefinedArgumentError = 102657,
282
- InvalidArgumentError = 102658,
283
- MissingDownloadUrlError = 102659,
284
- NotSupportedInBrowser = 102660,
285
- FileHandlerNotSet = 102661,
286
- FileNotFound = 102662,
287
- InitializationTimeout = 102663
288
- }
289
- /** GeoServiceStatus errors
290
- * @public
291
- */
292
- export declare enum GeoServiceStatus {
293
- Success = 0,
294
- GEOSERVICESTATUS_BASE = 147456,
295
- NoGeoLocation = 65602,
296
- OutOfUsefulRange = 147457,
297
- OutOfMathematicalDomain = 147458,
298
- NoDatumConverter = 147459,
299
- VerticalDatumConvertError = 147460,
300
- CSMapError = 147461,
301
- Pending = 147462
302
- }
303
- /** Error status from various reality data operations
304
- * @alpha
305
- */
306
- export declare enum RealityDataStatus {
307
- Success = 0,
308
- REALITYDATA_ERROR_BASE = 151552,
309
- InvalidData = 151553
310
- }
311
- /** When you want to associate an explanatory message with an error status value.
312
- * @beta Internal?
313
- */
314
- export interface StatusCodeWithMessage<ErrorCodeType> {
315
- status: ErrorCodeType;
316
- message: string;
317
- }
318
- /** A function that returns a metadata object for a [[BentleyError]].
319
- * 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.
320
- * @public
321
- */
322
- export declare type GetMetaDataFunction = () => object | undefined;
323
- /** Optional metadata attached to a [[BentleyError]]. May either be an object or a function that returns an object.
324
- * If this exception is logged and metadata is present, the metaData object is attached to the log entry via `JSON.stringify`
325
- * @public
326
- */
327
- export declare type LoggingMetaData = GetMetaDataFunction | object | undefined;
328
- interface ErrorProps {
329
- message: string;
330
- stack?: string;
331
- metadata?: object;
332
- }
333
- /** Base exception class for iTwin.js exceptions.
334
- * @public
335
- */
336
- export declare class BentleyError extends Error {
337
- errorNumber: number;
338
- private readonly _metaData;
339
- /**
340
- * @param errorNumber The a number that identifies of the problem.
341
- * @param message message that describes the problem (should not be localized).
342
- * @param metaData metaData about the exception.
343
- */
344
- constructor(errorNumber: number, message?: string, metaData?: LoggingMetaData);
345
- /** Returns true if this BentleyError includes (optional) metadata. */
346
- get hasMetaData(): boolean;
347
- /** get the meta data associated with this BentleyError, if any. */
348
- getMetaData(): object | undefined;
349
- /** get the metadata object associated with an ExceptionMetaData, if any. */
350
- static getMetaData(metaData: LoggingMetaData): object | undefined;
351
- /** This function returns the name of each error status. Override this method to handle more error status codes. */
352
- protected _initName(): string;
353
- /** Use run-time type checking to safely get a useful string summary of an unknown error value, or `""` if none exists.
354
- * @note It's recommended to use this function in `catch` clauses, where a caught value cannot be assumed to be `instanceof Error`
355
- * @public
356
- */
357
- static getErrorMessage(error: unknown): string;
358
- /** Use run-time type checking to safely get the call stack of an unknown error value, if possible.
359
- * @note It's recommended to use this function in `catch` clauses, where a caught value cannot be assumed to be `instanceof Error`
360
- * @public
361
- */
362
- static getErrorStack(error: unknown): string | undefined;
363
- /** Use run-time type checking to safely get the metadata with an unknown error value, if possible.
364
- * @note It's recommended to use this function in `catch` clauses, where a caught value cannot be assumed to be `instanceof BentleyError`
365
- * @see [[BentleyError.getMetaData]]
366
- * @public
367
- */
368
- static getErrorMetadata(error: unknown): object | undefined;
369
- /** Returns a new `ErrorProps` object representing an unknown error value. Useful for logging or wrapping/re-throwing caught errors.
370
- * @note Unlike `Error` objects (which lose messages and call stacks when serialized to JSON), objects
371
- * returned by this are plain old JavaScript objects, and can be easily logged/serialized to JSON.
372
- * @public
373
- */
374
- static getErrorProps(error: unknown): ErrorProps;
375
- }
376
- 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 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
+ }
173
+ /** Return codes for methods which perform repository management operations
174
+ * @beta Should these be internal?
175
+ */
176
+ export declare enum RepositoryStatus {
177
+ Success = 0,
178
+ /** The repository server did not respond to a request */
179
+ ServerUnavailable = 86017,
180
+ /** A requested lock was already held by another briefcase */
181
+ LockAlreadyHeld = 86018,
182
+ /** Failed to sync briefcase manager with server */
183
+ SyncError = 86019,
184
+ /** Response from server not understood */
185
+ InvalidResponse = 86020,
186
+ /** An operation requires local changes to be committed or abandoned */
187
+ PendingTransactions = 86021,
188
+ /** A lock cannot be relinquished because the associated object has been modified */
189
+ LockUsed = 86022,
190
+ /** An operation required creation of a ChangeSet, which failed */
191
+ CannotCreateChangeSet = 86023,
192
+ /** Request to server not understood */
193
+ InvalidRequest = 86024,
194
+ /** A change set committed to the server must be integrated into the briefcase before the operation can be completed */
195
+ ChangeSetRequired = 86025,
196
+ /** A requested DgnCode is reserved by another briefcase or in use */
197
+ CodeUnavailable = 86026,
198
+ /** A DgnCode cannot be released because it has not been reserved by the requesting briefcase */
199
+ CodeNotReserved = 86027,
200
+ /** A DgnCode cannot be relinquished because it has been used locally */
201
+ CodeUsed = 86028,
202
+ /** A required lock is not held by this briefcase */
203
+ LockNotHeld = 86029,
204
+ /** Repository is currently locked, no changes allowed */
205
+ RepositoryIsLocked = 86030,
206
+ /** Channel write constraint violation, such as an attempt to write outside the designated channel. */
207
+ ChannelConstraintViolation = 86031
208
+ }
209
+ /** Status from returned HTTP status code
210
+ * @beta Should these be internal?
211
+ */
212
+ export declare enum HttpStatus {
213
+ /** 2xx Success */
214
+ Success = 0,
215
+ /** 1xx Informational responses */
216
+ Info = 94209,
217
+ /** 3xx Redirection */
218
+ Redirection = 94210,
219
+ /** 4xx Client errors */
220
+ ClientError = 94211,
221
+ /** 5xx Server errors */
222
+ ServerError = 94212
223
+ }
224
+ /** iModelHub Services Errors
225
+ * @beta Right package?
226
+ */
227
+ export declare enum IModelHubStatus {
228
+ Success = 0,
229
+ IMODELHUBERROR_BASE = 102400,
230
+ IMODELHUBERROR_REQUESTERRORBASE = 102656,
231
+ Unknown = 102401,
232
+ MissingRequiredProperties = 102402,
233
+ InvalidPropertiesValues = 102403,
234
+ UserDoesNotHavePermission = 102404,
235
+ UserDoesNotHaveAccess = 102405,
236
+ InvalidBriefcase = 102406,
237
+ BriefcaseDoesNotExist = 102407,
238
+ BriefcaseDoesNotBelongToUser = 102408,
239
+ AnotherUserPushing = 102409,
240
+ ChangeSetAlreadyExists = 102410,
241
+ ChangeSetDoesNotExist = 102411,
242
+ FileIsNotUploaded = 102412,
243
+ iModelIsNotInitialized = 102413,
244
+ ChangeSetPointsToBadSeed = 102414,
245
+ OperationFailed = 102415,
246
+ PullIsRequired = 102416,
247
+ MaximumNumberOfBriefcasesPerUser = 102417,
248
+ MaximumNumberOfBriefcasesPerUserPerMinute = 102418,
249
+ DatabaseTemporarilyLocked = 102419,
250
+ iModelIsLocked = 102420,
251
+ CodesExist = 102421,
252
+ LocksExist = 102422,
253
+ iModelAlreadyExists = 102423,
254
+ iModelDoesNotExist = 102424,
255
+ FileDoesNotExist = 102425,
256
+ FileAlreadyExists = 102426,
257
+ LockDoesNotExist = 102427,
258
+ LockOwnedByAnotherBriefcase = 102428,
259
+ CodeStateInvalid = 102429,
260
+ CodeReservedByAnotherBriefcase = 102430,
261
+ CodeDoesNotExist = 102431,
262
+ EventTypeDoesNotExist = 102432,
263
+ EventSubscriptionDoesNotExist = 102433,
264
+ EventSubscriptionAlreadyExists = 102434,
265
+ ITwinIdIsNotSpecified = 102435,
266
+ FailedToGetITwinPermissions = 102436,
267
+ FailedToGetITwinMembers = 102437,
268
+ ChangeSetAlreadyHasVersion = 102438,
269
+ VersionAlreadyExists = 102439,
270
+ JobSchedulingFailed = 102440,
271
+ ConflictsAggregate = 102441,
272
+ FailedToGetITwinById = 102442,
273
+ DatabaseOperationFailed = 102443,
274
+ SeedFileInitializationFailed = 102444,
275
+ FailedToGetAssetPermissions = 102445,
276
+ FailedToGetAssetMembers = 102446,
277
+ ITwinDoesNotExist = 102447,
278
+ LockChunkDoesNotExist = 102449,
279
+ CheckpointAlreadyExists = 102450,
280
+ CheckpointDoesNotExist = 102451,
281
+ UndefinedArgumentError = 102657,
282
+ InvalidArgumentError = 102658,
283
+ MissingDownloadUrlError = 102659,
284
+ NotSupportedInBrowser = 102660,
285
+ FileHandlerNotSet = 102661,
286
+ FileNotFound = 102662,
287
+ InitializationTimeout = 102663
288
+ }
289
+ /** GeoServiceStatus errors
290
+ * @public
291
+ */
292
+ export declare enum GeoServiceStatus {
293
+ Success = 0,
294
+ GEOSERVICESTATUS_BASE = 147456,
295
+ NoGeoLocation = 65602,
296
+ OutOfUsefulRange = 147457,
297
+ OutOfMathematicalDomain = 147458,
298
+ NoDatumConverter = 147459,
299
+ VerticalDatumConvertError = 147460,
300
+ CSMapError = 147461,
301
+ Pending = 147462
302
+ }
303
+ /** Error status from various reality data operations
304
+ * @alpha
305
+ */
306
+ export declare enum RealityDataStatus {
307
+ Success = 0,
308
+ REALITYDATA_ERROR_BASE = 151552,
309
+ InvalidData = 151553
310
+ }
311
+ /** When you want to associate an explanatory message with an error status value.
312
+ * @beta Internal?
313
+ */
314
+ export interface StatusCodeWithMessage<ErrorCodeType> {
315
+ status: ErrorCodeType;
316
+ message: string;
317
+ }
318
+ /** A function that returns a metadata object for a [[BentleyError]].
319
+ * 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.
320
+ * @public
321
+ */
322
+ export declare type GetMetaDataFunction = () => object | undefined;
323
+ /** Optional metadata attached to a [[BentleyError]]. May either be an object or a function that returns an object.
324
+ * If this exception is logged and metadata is present, the metaData object is attached to the log entry via `JSON.stringify`
325
+ * @public
326
+ */
327
+ export declare type LoggingMetaData = GetMetaDataFunction | object | undefined;
328
+ interface ErrorProps {
329
+ message: string;
330
+ stack?: string;
331
+ metadata?: object;
332
+ }
333
+ /** Base exception class for iTwin.js exceptions.
334
+ * @public
335
+ */
336
+ export declare class BentleyError extends Error {
337
+ errorNumber: number;
338
+ private readonly _metaData;
339
+ /**
340
+ * @param errorNumber The a number that identifies of the problem.
341
+ * @param message message that describes the problem (should not be localized).
342
+ * @param metaData metaData about the exception.
343
+ */
344
+ constructor(errorNumber: number, message?: string, metaData?: LoggingMetaData);
345
+ /** Returns true if this BentleyError includes (optional) metadata. */
346
+ get hasMetaData(): boolean;
347
+ /** get the meta data associated with this BentleyError, if any. */
348
+ getMetaData(): object | undefined;
349
+ /** get the metadata object associated with an ExceptionMetaData, if any. */
350
+ static getMetaData(metaData: LoggingMetaData): object | undefined;
351
+ /** This function returns the name of each error status. Override this method to handle more error status codes. */
352
+ protected _initName(): string;
353
+ /** Use run-time type checking to safely get a useful string summary of an unknown error value, or `""` if none exists.
354
+ * @note It's recommended to use this function in `catch` clauses, where a caught value cannot be assumed to be `instanceof Error`
355
+ * @public
356
+ */
357
+ static getErrorMessage(error: unknown): string;
358
+ /** Use run-time type checking to safely get the call stack of an unknown error value, if possible.
359
+ * @note It's recommended to use this function in `catch` clauses, where a caught value cannot be assumed to be `instanceof Error`
360
+ * @public
361
+ */
362
+ static getErrorStack(error: unknown): string | undefined;
363
+ /** Use run-time type checking to safely get the metadata with an unknown error value, if possible.
364
+ * @note It's recommended to use this function in `catch` clauses, where a caught value cannot be assumed to be `instanceof BentleyError`
365
+ * @see [[BentleyError.getMetaData]]
366
+ * @public
367
+ */
368
+ static getErrorMetadata(error: unknown): object | undefined;
369
+ /** Returns a new `ErrorProps` object representing an unknown error value. Useful for logging or wrapping/re-throwing caught errors.
370
+ * @note Unlike `Error` objects (which lose messages and call stacks when serialized to JSON), objects
371
+ * returned by this are plain old JavaScript objects, and can be easily logged/serialized to JSON.
372
+ * @public
373
+ */
374
+ static getErrorProps(error: unknown): ErrorProps;
375
+ }
376
+ export {};
377
377
  //# sourceMappingURL=BentleyError.d.ts.map