fix networ error excetption for synchronous requests [android-volley-library]

This commit is contained in:
Shyri Villar 2016-01-18 22:06:02 +01:00
parent 51468503b2
commit 97e1d1e273

View File

@ -120,6 +120,9 @@ public class {{classname}} {
} catch (InterruptedException ex) {
throw ex;
} catch (ExecutionException ex) {
if(ex.getCause() instanceof VolleyError) {
throw new ApiException(((VolleyError) ex.getCause()).networkResponse.statusCode, ((VolleyError) ex.getCause()).getMessage());
}
throw ex;
} catch (TimeoutException ex) {
throw ex;