onException method
Implementation
HttpResult<T> onException(OnException onException) {
if (hasException) {
onException.call(_exception);
}
return this;
}
HttpResult<T> onException(OnException onException) {
if (hasException) {
onException.call(_exception);
}
return this;
}