Skip to content

Commit 6b14fed

Browse files
Create README.md
1 parent a3a983c commit 6b14fed

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

README.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,11 @@ compile 'me.jessyan:rxerrorhandler:1.0.1' //rxjava1
2424
@Override
2525
                   public void handleResponseError(Context context, Throwable t) {
2626
Log.w(TAG, "error handle");
27+
if (t instanceof UnknownHostException) {
28+
//Do something
29+
}else if (t instanceof SocketTimeoutException) {
30+
//Do something
31+
}//Handle other Exception
2732
}
2833
}).build();
2934
```

0 commit comments

Comments
 (0)