UiError Class
Deprecated in 4.3 - will not be removed until after 2026-06-13. Use Bentley.BentleyError instead.
iTwin.js UI UiError class is a subclass of BentleyError. Errors are logged.
Extends
Methods
| Name |
Description |
|
| constructor(category: string, message: string, errorNumber: number = BentleyStatus.ERROR, getMetaData?: GetMetaDataFunction): UiError |
Constructs UiError using BentleyError. |
|
Inherited methods
| Name |
Inherited from |
Description |
| _initName(): string Protected Inherited |
BentleyError |
This function returns the name of each error status. |
| getMetaData(): undefined | object Inherited |
BentleyError |
get the meta data associated with this BentleyError, if any. |
| getErrorKey(errorNumber: number): string Static Inherited |
BentleyError |
This function returns the name of each error status. |
| getErrorMessage(error: unknown): string Static Inherited |
BentleyError |
Use run-time type checking to safely get a useful string summary of an unknown error value, or "" if none exists. |
| getErrorMetadata(error: unknown): undefined | object Static Inherited |
BentleyError |
Use run-time type checking to safely get the metadata with an unknown error value, if possible. |
| getErrorProps(error: unknown): ErrorProps Static Inherited |
BentleyError |
Returns a new ErrorProps object representing an unknown error value. |
| getErrorStack(error: unknown): undefined | string Static Inherited |
BentleyError |
Use run-time type checking to safely get the call stack of an unknown error value, if possible. |
| getMetaData(metaData: LoggingMetaData): undefined | object Static Inherited |
BentleyError |
get the metadata object associated with an ExceptionMetaData, if any. |
| isError<T extends LegacyITwinErrorWithNumber>(error: unknown, errorNumber?: number): error is T Static Inherited |
BentleyError |
Determine if an error object implements the LegacyITwinErrorWithNumber interface. |
Properties
| Name |
Type |
Description |
|
| category |
string |
|
|
Inherited properties
Defined in
Last Updated: 24 October, 2025