RaiseErrors
Hierarchy
- Ability
- RaiseErrors
Index
Constructors
Methods
Constructors
constructor
Parameters
stage: Stage
Returns RaiseErrors
Methods
create
Type parameters
- RE: RuntimeError
Parameters
errorType: new (...args: any[]) => RE
options: ErrorOptions
Returns RE
An Ability that enables an Actor to create a Serenity/JS RuntimeError from within a custom Interaction.
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