maybePostException method
- HttpBasedResponse response
Implementation
void maybePostException(HttpBasedResponse response) {
switch (response.status) {
case HttpBasedResponse_Status.SUCCESS:
logTrace('HTTP responded with SUCCESS.');
break;
case HttpBasedResponse_Status.ERROR:
logTrace('HTTP responded with ERROR', error: response.error);
break;
case HttpBasedResponse_Status.UNKNOWN:
logTrace('HTTP responded with UNKNOWN.');
break;
default:
logTrace('Unknown HTTP response status.');
}
}