@itwin/core-bentley 4.0.0-dev.7 → 4.0.0-dev.70
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.
- package/CHANGELOG.md +29 -12
- package/lib/cjs/AccessToken.d.ts +10 -10
- package/lib/cjs/AccessToken.d.ts.map +1 -1
- package/lib/cjs/AccessToken.js +9 -9
- package/lib/cjs/Assert.d.ts +25 -25
- package/lib/cjs/Assert.js +45 -45
- package/lib/cjs/Assert.js.map +1 -1
- package/lib/cjs/BeEvent.d.ts +81 -81
- package/lib/cjs/BeEvent.d.ts.map +1 -1
- package/lib/cjs/BeEvent.js +156 -156
- package/lib/cjs/BeSQLite.d.ts +172 -170
- package/lib/cjs/BeSQLite.d.ts.map +1 -1
- package/lib/cjs/BeSQLite.js +185 -183
- package/lib/cjs/BeSQLite.js.map +1 -1
- package/lib/cjs/BentleyError.d.ts +378 -378
- package/lib/cjs/BentleyError.d.ts.map +1 -1
- package/lib/cjs/BentleyError.js +703 -702
- package/lib/cjs/BentleyError.js.map +1 -1
- package/lib/cjs/BentleyLoggerCategory.d.ts +11 -11
- package/lib/cjs/BentleyLoggerCategory.js +19 -19
- package/lib/cjs/ByteStream.d.ts +110 -110
- package/lib/cjs/ByteStream.js +159 -159
- package/lib/cjs/ClassUtils.d.ts +14 -14
- package/lib/cjs/ClassUtils.js +27 -27
- package/lib/cjs/Compare.d.ts +47 -47
- package/lib/cjs/Compare.d.ts.map +1 -1
- package/lib/cjs/Compare.js +75 -75
- package/lib/cjs/CompressedId64Set.d.ts +134 -134
- package/lib/cjs/CompressedId64Set.d.ts.map +1 -1
- package/lib/cjs/CompressedId64Set.js +428 -428
- package/lib/cjs/CompressedId64Set.js.map +1 -1
- package/lib/cjs/Dictionary.d.ts +125 -125
- package/lib/cjs/Dictionary.js +203 -203
- package/lib/cjs/Disposable.d.ts +80 -80
- package/lib/cjs/Disposable.d.ts.map +1 -1
- package/lib/cjs/Disposable.js +120 -120
- package/lib/cjs/Id.d.ts +285 -285
- package/lib/cjs/Id.d.ts.map +1 -1
- package/lib/cjs/Id.js +643 -643
- package/lib/cjs/IndexMap.d.ts +65 -65
- package/lib/cjs/IndexMap.js +91 -91
- package/lib/cjs/JsonSchema.d.ts +77 -77
- package/lib/cjs/JsonSchema.d.ts.map +1 -1
- package/lib/cjs/JsonSchema.js +9 -9
- package/lib/cjs/JsonUtils.d.ts +78 -78
- package/lib/cjs/JsonUtils.js +151 -151
- package/lib/cjs/LRUMap.d.ts +129 -129
- package/lib/cjs/LRUMap.js +333 -333
- package/lib/cjs/LRUMap.js.map +1 -1
- package/lib/cjs/Logger.d.ts +143 -143
- package/lib/cjs/Logger.d.ts.map +1 -1
- package/lib/cjs/Logger.js +256 -258
- package/lib/cjs/Logger.js.map +1 -1
- package/lib/cjs/ObservableSet.d.ts +23 -23
- package/lib/cjs/ObservableSet.js +51 -51
- package/lib/cjs/OneAtATimeAction.d.ts +31 -31
- package/lib/cjs/OneAtATimeAction.js +94 -94
- package/lib/cjs/OneAtATimeAction.js.map +1 -1
- package/lib/cjs/OrderedId64Iterable.d.ts +74 -74
- package/lib/cjs/OrderedId64Iterable.d.ts.map +1 -1
- package/lib/cjs/OrderedId64Iterable.js +235 -235
- package/lib/cjs/OrderedSet.d.ts +40 -40
- package/lib/cjs/OrderedSet.js +64 -64
- package/lib/cjs/PriorityQueue.d.ts +70 -70
- package/lib/cjs/PriorityQueue.d.ts.map +1 -1
- package/lib/cjs/PriorityQueue.js +140 -140
- package/lib/cjs/ProcessDetector.d.ts +59 -59
- package/lib/cjs/ProcessDetector.js +71 -71
- package/lib/cjs/SortedArray.d.ts +236 -232
- package/lib/cjs/SortedArray.d.ts.map +1 -1
- package/lib/cjs/SortedArray.js +315 -303
- package/lib/cjs/SortedArray.js.map +1 -1
- package/lib/cjs/StatusCategory.d.ts +30 -30
- package/lib/cjs/StatusCategory.d.ts.map +1 -1
- package/lib/cjs/StatusCategory.js +460 -460
- package/lib/cjs/StatusCategory.js.map +1 -1
- package/lib/cjs/StringUtils.d.ts +22 -22
- package/lib/cjs/StringUtils.js +148 -148
- package/lib/cjs/Time.d.ts +122 -122
- package/lib/cjs/Time.js +152 -152
- package/lib/cjs/Time.js.map +1 -1
- package/lib/cjs/Tracing.d.ts +43 -40
- package/lib/cjs/Tracing.d.ts.map +1 -1
- package/lib/cjs/Tracing.js +134 -130
- package/lib/cjs/Tracing.js.map +1 -1
- package/lib/cjs/TupleKeyedMap.d.ts +36 -36
- package/lib/cjs/TupleKeyedMap.js +102 -102
- package/lib/cjs/TypedArrayBuilder.d.ts +155 -155
- package/lib/cjs/TypedArrayBuilder.d.ts.map +1 -1
- package/lib/cjs/TypedArrayBuilder.js +206 -208
- package/lib/cjs/TypedArrayBuilder.js.map +1 -1
- package/lib/cjs/UnexpectedErrors.d.ts +43 -43
- package/lib/cjs/UnexpectedErrors.d.ts.map +1 -1
- package/lib/cjs/UnexpectedErrors.js +68 -68
- package/lib/cjs/UnexpectedErrors.js.map +1 -1
- package/lib/cjs/UtilityTypes.d.ts +112 -96
- package/lib/cjs/UtilityTypes.d.ts.map +1 -1
- package/lib/cjs/UtilityTypes.js +40 -40
- package/lib/cjs/UtilityTypes.js.map +1 -1
- package/lib/cjs/YieldManager.d.ts +18 -18
- package/lib/cjs/YieldManager.js +34 -34
- package/lib/cjs/core-bentley.d.ts +74 -74
- package/lib/cjs/core-bentley.js +94 -90
- package/lib/cjs/core-bentley.js.map +1 -1
- package/lib/cjs/partitionArray.d.ts +21 -21
- package/lib/cjs/partitionArray.js +43 -43
- package/lib/esm/AccessToken.d.ts +10 -10
- package/lib/esm/AccessToken.d.ts.map +1 -1
- package/lib/esm/AccessToken.js +8 -8
- package/lib/esm/Assert.d.ts +25 -25
- package/lib/esm/Assert.js +41 -41
- package/lib/esm/Assert.js.map +1 -1
- package/lib/esm/BeEvent.d.ts +81 -81
- package/lib/esm/BeEvent.d.ts.map +1 -1
- package/lib/esm/BeEvent.js +150 -150
- package/lib/esm/BeSQLite.d.ts +172 -170
- package/lib/esm/BeSQLite.d.ts.map +1 -1
- package/lib/esm/BeSQLite.js +182 -180
- package/lib/esm/BeSQLite.js.map +1 -1
- package/lib/esm/BentleyError.d.ts +378 -378
- package/lib/esm/BentleyError.d.ts.map +1 -1
- package/lib/esm/BentleyError.js +699 -698
- package/lib/esm/BentleyError.js.map +1 -1
- package/lib/esm/BentleyLoggerCategory.d.ts +11 -11
- package/lib/esm/BentleyLoggerCategory.js +16 -16
- package/lib/esm/ByteStream.d.ts +110 -110
- package/lib/esm/ByteStream.js +155 -155
- package/lib/esm/ClassUtils.d.ts +14 -14
- package/lib/esm/ClassUtils.js +22 -22
- package/lib/esm/Compare.d.ts +47 -47
- package/lib/esm/Compare.d.ts.map +1 -1
- package/lib/esm/Compare.js +63 -63
- package/lib/esm/CompressedId64Set.d.ts +134 -134
- package/lib/esm/CompressedId64Set.d.ts.map +1 -1
- package/lib/esm/CompressedId64Set.js +423 -423
- package/lib/esm/CompressedId64Set.js.map +1 -1
- package/lib/esm/Dictionary.d.ts +125 -125
- package/lib/esm/Dictionary.js +199 -199
- package/lib/esm/Disposable.d.ts +80 -80
- package/lib/esm/Disposable.d.ts.map +1 -1
- package/lib/esm/Disposable.js +112 -112
- package/lib/esm/Id.d.ts +285 -285
- package/lib/esm/Id.d.ts.map +1 -1
- package/lib/esm/Id.js +639 -639
- package/lib/esm/IndexMap.d.ts +65 -65
- package/lib/esm/IndexMap.js +86 -86
- package/lib/esm/JsonSchema.d.ts +77 -77
- package/lib/esm/JsonSchema.d.ts.map +1 -1
- package/lib/esm/JsonSchema.js +8 -8
- package/lib/esm/JsonUtils.d.ts +78 -78
- package/lib/esm/JsonUtils.js +148 -148
- package/lib/esm/LRUMap.d.ts +129 -129
- package/lib/esm/LRUMap.js +326 -326
- package/lib/esm/LRUMap.js.map +1 -1
- package/lib/esm/Logger.d.ts +143 -143
- package/lib/esm/Logger.d.ts.map +1 -1
- package/lib/esm/Logger.js +253 -253
- package/lib/esm/Logger.js.map +1 -1
- package/lib/esm/ObservableSet.d.ts +23 -23
- package/lib/esm/ObservableSet.js +47 -47
- package/lib/esm/OneAtATimeAction.d.ts +31 -31
- package/lib/esm/OneAtATimeAction.js +89 -89
- package/lib/esm/OneAtATimeAction.js.map +1 -1
- package/lib/esm/OrderedId64Iterable.d.ts +74 -74
- package/lib/esm/OrderedId64Iterable.d.ts.map +1 -1
- package/lib/esm/OrderedId64Iterable.js +232 -232
- package/lib/esm/OrderedSet.d.ts +40 -40
- package/lib/esm/OrderedSet.js +59 -59
- package/lib/esm/PriorityQueue.d.ts +70 -70
- package/lib/esm/PriorityQueue.d.ts.map +1 -1
- package/lib/esm/PriorityQueue.js +136 -136
- package/lib/esm/ProcessDetector.d.ts +59 -59
- package/lib/esm/ProcessDetector.js +67 -67
- package/lib/esm/SortedArray.d.ts +236 -232
- package/lib/esm/SortedArray.d.ts.map +1 -1
- package/lib/esm/SortedArray.js +308 -296
- package/lib/esm/SortedArray.js.map +1 -1
- package/lib/esm/StatusCategory.d.ts +30 -30
- package/lib/esm/StatusCategory.d.ts.map +1 -1
- package/lib/esm/StatusCategory.js +455 -454
- package/lib/esm/StatusCategory.js.map +1 -1
- package/lib/esm/StringUtils.d.ts +22 -22
- package/lib/esm/StringUtils.js +142 -142
- package/lib/esm/Time.d.ts +122 -122
- package/lib/esm/Time.js +146 -146
- package/lib/esm/Time.js.map +1 -1
- package/lib/esm/Tracing.d.ts +43 -40
- package/lib/esm/Tracing.d.ts.map +1 -1
- package/lib/esm/Tracing.js +130 -126
- package/lib/esm/Tracing.js.map +1 -1
- package/lib/esm/TupleKeyedMap.d.ts +36 -36
- package/lib/esm/TupleKeyedMap.js +98 -98
- package/lib/esm/TypedArrayBuilder.d.ts +155 -155
- package/lib/esm/TypedArrayBuilder.d.ts.map +1 -1
- package/lib/esm/TypedArrayBuilder.js +198 -200
- package/lib/esm/TypedArrayBuilder.js.map +1 -1
- package/lib/esm/UnexpectedErrors.d.ts +43 -43
- package/lib/esm/UnexpectedErrors.d.ts.map +1 -1
- package/lib/esm/UnexpectedErrors.js +65 -64
- package/lib/esm/UnexpectedErrors.js.map +1 -1
- package/lib/esm/UtilityTypes.d.ts +112 -96
- package/lib/esm/UtilityTypes.d.ts.map +1 -1
- package/lib/esm/UtilityTypes.js +34 -34
- package/lib/esm/UtilityTypes.js.map +1 -1
- package/lib/esm/YieldManager.d.ts +18 -18
- package/lib/esm/YieldManager.js +30 -30
- package/lib/esm/core-bentley.d.ts +74 -74
- package/lib/esm/core-bentley.js +78 -78
- package/lib/esm/partitionArray.d.ts +21 -21
- package/lib/esm/partitionArray.js +39 -39
- package/package.json +8 -8
|
@@ -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
|
|
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
|
|
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 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 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
|