Created
March 12, 2015 08:50
-
-
Save ishitcno1/c524b3bf219da2f0b14b to your computer and use it in GitHub Desktop.
retrofit get http body on failure
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@Override | |
public void failure(RetrofitError error) { | |
String body = new String(((TypedByteArray)error.getResponse().getBody()).getBytes()); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment