FutureAnyhowError extension

on

Methods

chain() Future<Iterable<Error>>

Available on Future<Error>, provided by the FutureAnyhowError extension

An iterator of the chain of source errors. Starting at the this.
downcast<E>() Future<Result<E>>

Available on Future<Error>, provided by the FutureAnyhowError extension

Attempt to downcast the error object to a concrete type.
isRoot() Future<bool>

Available on Future<Error>, provided by the FutureAnyhowError extension

Is this Error the first error
isType<E>() Future<bool>

Available on Future<Error>, provided by the FutureAnyhowError extension

Returns true if E is the type held by this error object. Analogous to anyhow's "is" function, but "is" is a protect keyword in dart
rootCause() Future<Error>

Available on Future<Error>, provided by the FutureAnyhowError extension

The lowest level cause of this error — this error’s cause’s cause’s cause etc. The root cause is the last error in the iterator produced by chain.
stacktrace() Future<StackTrace?>

Available on Future<Error>, provided by the FutureAnyhowError extension

The stacktrace (backtrace) for this error if hasStackTrace is set to true