A message describing the rejection
Indicates if the transition was redirected.
When a transition is redirected, the rejection type will be RejectType.SUPERSEDED and this flag will be true.
The type of the rejection.
This value is an number representing the type of transition rejection. If using Typescript, this is a Typescript enum.
2
)3
)4
)5
)6
)Returns a Rejection due to aborted transition
Returns a Rejection due to aborted transition
Returns a Rejection due to ignored transition
Returns a Rejection due to invalid transition
Returns true if the obj is a rejected promise created from the asPromise
factory
Returns a Rejection
Normalizes a value as a Rejection. If the value is already a Rejection, returns it. Otherwise, wraps and returns the value as a Rejection (Rejection type: ERROR).
detail
if it is already a Rejection
, else returns an ERROR Rejection.
Returns a Rejection due to redirected transition
Returns a Rejection due to transition superseded
Generated using TypeDoc
A detail object
This value varies based on the mechanism for rejecting the transition. For example, if an error was thrown from a hook, the
detail
will be theError
object. If a hook returned a rejected promise, thedetail
will be the rejected value.