externalabstractRuntimeError
Hierarchy
Index
Properties
publicexternaloptionalreadonlycause
The root cause of this RuntimeError, if any
externalname
externalmessage
externaloptionalstack
Methods
staticexternal[hasInstance]
Custom instanceof check that works across module boundaries. This addresses the dual-package hazard where the same class loaded from both ESM and CJS creates distinct constructor functions.
The check walks up the prototype chain of the instance and compares constructor names, which remain consistent across module boundaries.
Parameters
externalinstance: unknown
Returns boolean
externaltoString
Human-readable description of the error
Returns string
externaltoJSON
Returns object
Base class for custom errors that may occur during execution of a test scenario.
Defining a custom error
Wrapping a sync error
Wrapping an async error
Registering a custom error with
ErrorSerialiser