Optional
Protected
Stop hooks execution and send error to the UI
.throwError('My error message');
the error message
Stop hooks execution and send Forbidden error to the UI
.throwForbiddenError('My forbidden error message');
the forbidden error message
Stop hooks execution and send Validation error to the UI
.throwValidationError('My validation error message');
the validation error message
Stop hooks execution and send error to the UI
Example