The failure a handler throws (or rejects with) to fail a dispatch with a payload: the value is validated against the action's declared failure type and bound to the failure root inside onFailure. Any other thrown error is a failure with no payload.
failure
onFailure
Readonly
The brand isActionFailure reads: the ESM and CJS builds each hold a copy of this class.
isActionFailure
Optional
The failure a handler throws (or rejects with) to fail a dispatch with a payload: the value is validated against the action's declared
failuretype and bound to thefailureroot insideonFailure. Any other thrown error is a failure with no payload.