ITwinError Interface

An interface used to describe an error for a developer/application. The message is not intended to be displayed to an end user. This error interface should be extended when needing to throw errors with extra properties defined on them. See InUseLocksError for an example.

Extends

  • Error

Properties

Name Type Description
errorKey string unique key for error, within namespace.  
message string explanation of what went wrong.  
LoggingMetaData | undefined metadata about the exception.  
namespace string namespace for the error.  
stack string | undefined stack trace of the error.  

Defined in

Last Updated: 28 March, 2025