Skip to content

Commit

Permalink
RequestHandler: more generic exception catching to catch java.lang.As…
Browse files Browse the repository at this point in the history
…sertionError on executing the http request

AssertionError is thrown on some devices where for example MD5 is not available:
java.security.NoSuchAlgorithmException: MessageDigest MD5 implementation not found
  • Loading branch information
Andrei Boeru committed Dec 19, 2013
1 parent 7b65a6c commit f355b9a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions AdjustIo/src/com/adeven/adjustio/RequestHandler.java
Original file line number Diff line number Diff line change
Expand Up @@ -117,8 +117,8 @@ private void sendInternal(ActivityPackage activityPackage) {
closePackage(activityPackage, "Request timed out", e);
} catch (IOException e) {
closePackage(activityPackage, "Request failed", e);
} catch (Exception e) {
sendNextPackage(activityPackage, "Runtime exeption", e);
} catch (Throwable e) {
sendNextPackage(activityPackage, "Runtime exception", e);
}
}

Expand Down

0 comments on commit f355b9a

Please sign in to comment.