reject method

void reject(
  1. NetworkException error
)

Abort the chain with an error — no HTTP request is made.

Implementation

void reject(NetworkException error) {
  _resolved = true;
  shortCircuit = error;
}