Errors

Classes for working with errors.

Classes

Name Description  
BentleyError Base exception class for iTwin.js exceptions.  
UnexpectedErrors Utility for handling/reporting unexpected runtime errors.  

Enumerations

Name Description  
BentleyStatus Standard status code.  
BriefcaseStatus Error statuses produced by various briefcase operations, typically encountered as the errorNumber of an IModelError.  
ChangeSetStatus Error statuses produced by various Changeset operations, typically encountered as the errorNumber of an IModelError.  
GeoServiceStatus GeoServiceStatus errors  
HttpStatus Status from returned HTTP status code  
IModelHubStatus Statuses produced by APIs that interact with iModelHub, typically encountered as the errorNumber of an IModelError.  
IModelStatus Status codes that are used in conjunction with BentleyError.  
RpcInterfaceStatus RpcInterface status codes  

Type Aliases

Name Description  
GetMetaDataFunction A function that returns a metadata object for a BentleyError.  
Optional metadata attached to a BentleyError.  
OnUnexpectedError A function to be notified when an unexpected error happens  
StatusCategoryHandler  

Last Updated: 14 November, 2024