Skip to content

Commit

Permalink
One more exception type is going to be considered a network error
Browse files Browse the repository at this point in the history
  • Loading branch information
yeriomin committed Sep 18, 2017
1 parent 7458035 commit 1383266
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
import java.net.UnknownHostException;

import javax.net.ssl.SSLHandshakeException;
import javax.net.ssl.SSLPeerUnverifiedException;

abstract class GoogleApiAsyncTask extends AsyncTask<String, Void, Throwable> {

Expand Down Expand Up @@ -123,6 +124,7 @@ protected void processAuthException(AuthException e) {
static public boolean noNetwork(Throwable e) {
return e instanceof UnknownHostException
|| e instanceof SSLHandshakeException
|| e instanceof SSLPeerUnverifiedException
|| e instanceof ConnectException
|| e instanceof SocketException
|| e instanceof SocketTimeoutException;
Expand Down

0 comments on commit 1383266

Please sign in to comment.