onFailed method
void
onFailed(
- VoltronHttpRequest httpRequest,
- VoltronHttpResponse httpResponse,
- JSPromise promise
override
fail callback
Implementation
@override
void onFailed(
VoltronHttpRequest httpRequest,
VoltronHttpResponse httpResponse,
JSPromise promise,
) {
promise.reject(httpResponse.statusMessage);
}