PresentationError Class

An error type thrown by Presentation APIs.

Extends

  • BentleyError

Methods

Name Description
constructor(errorNumber: PresentationStatus, message?: string, getMetaData?: GetMetaDataFunction): PresentationError Creates an instance of Error.  
_initName(): string Protected Returns the name of each error status.  

Inherited methods

Name Inherited from Description
BentleyError get the meta data associated with this BentleyError, if any.
getErrorMessage(error: unknown): string Static BentleyError Use run-time type checking to safely get a useful string summary of an unknown error value, or "" if none exists.
BentleyError Use run-time type checking to safely get the metadata with an unknown error value, if possible.
getErrorProps(error: unknown): ErrorProps Static BentleyError Returns a new ErrorProps object representing an unknown error value.
getErrorStack(error: unknown): undefined | string Static BentleyError Use run-time type checking to safely get the call stack of an unknown error value, if possible.
BentleyError get the metadata object associated with an ExceptionMetaData, if any.

Inherited properties

Name Type Inherited from Description
errorNumber number BentleyError  
boolean BentleyError Returns true if this BentleyError includes (optional) metadata.

Defined in

Last Updated: 30 November, 2023