thenThrow method
The stub throws exception for every matching request.
Implementation
void thenThrow(HttpAdapterException exception) {
_adapter._stubs.add(_build([_Reply.failure(exception)]));
}
The stub throws exception for every matching request.
void thenThrow(HttpAdapterException exception) {
_adapter._stubs.add(_build([_Reply.failure(exception)]));
}