BentleyError Class
The error type thrown by this module. BentleyError subclasses Error to add an errorNumber member. See IModelStatus for errorNumber values.
Extends
Methods
| Name |
Description |
|
| constructor(errorNumber: number, message?: string, log?: LogFunction, category?: string, getMetaData?: GetMetaDataFunction): BentleyError |
Construct a new BentleyError |
|
| _initName(): string Protected |
This function returns the name of each error status. |
|
| getMetaData(): any |
Return the meta data associated with this BentleyError. |
|
Properties
| Name |
Type |
Description |
|
| Error Static |
ErrorConstructor |
|
|
| errorNumber |
number |
|
|
| hasMetaData Accessor ReadOnly |
boolean |
Returns true if this BentleyError includes (optional) meta data. |
|
Inherited properties
| Name |
Type |
Inherited from |
Description |
| message |
string |
Error |
|
| name |
string |
Error |
|
| stack |
undefined | string |
Error |
|
Defined in
Last Updated:
08 January, 2020