externalRaiseErrors
Hierarchy
- Ability
- RaiseErrors
Index
Constructors
Methods
Constructors
externalconstructor
Parameters
externalstage: Stage
Returns RaiseErrors
Methods
externalcreate
Type parameters
- RE: RuntimeError
Parameters
externalerrorType: new (...args: any[]) => RE
externaloptions: ErrorOptions
Returns RE
An
Ability
that enables anActor
to create a Serenity/JSRuntimeError
from within a customInteraction
.The stack trace of an error created this way includes the filesystem location pointing to where the interaction was invoked, which makes debugging any failures easier.
The ability to
RaiseErrors
is given to all Serenity/JS actors by default, so you don't need to configure it explicitly.Raising an error
Learn more
ErrorOptions
ErrorFactory
AssertionError
ConfigurationError
LogicError
RuntimeError
TestCompromisedError