Skip to content

Commit

Permalink
Catching the socket timeout separately to avoid reporting it to Crash…
Browse files Browse the repository at this point in the history
…lytics.
  • Loading branch information
jguerinet committed Jan 12, 2016
1 parent a78edcd commit 8947d7e
Showing 1 changed file with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2014-2015 Appvelopers
* Copyright 2014-2016 Appvelopers
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down Expand Up @@ -40,6 +40,7 @@
import java.io.IOException;
import java.lang.reflect.Type;
import java.net.Proxy;
import java.net.SocketTimeoutException;
import java.util.ArrayList;
import java.util.List;

Expand Down Expand Up @@ -169,8 +170,9 @@ public Request authenticateProxy(Proxy proxy, Response response)
}
}
}
}
catch (Exception e) {
} catch (SocketTimeoutException e) {
Timber.i("Error: Socket timeout");
} catch (Exception e) {
//Catch any possible exceptions
Timber.e(e, "Section Error: %s", mCurrentSection);
}
Expand Down

0 comments on commit 8947d7e

Please sign in to comment.