onFailed method

  1. @override
void onFailed(
  1. VoltronHttpRequest httpRequest,
  2. VoltronHttpResponse httpResponse,
  3. JSPromise promise
)
override

fail callback

Implementation

@override
void onFailed(
  VoltronHttpRequest httpRequest,
  VoltronHttpResponse httpResponse,
  JSPromise promise,
) {
  promise.reject(httpResponse.statusMessage);
}