2

I'm looking for equivalent class RetrofitError in retrofit 2.0

I do sync call and need status code, headers, body, etc. For async call it is easy but how to do it with async?

My code:

try {
Response<User> execute = call.execute();
} catch (RetroFitError e) 
{
      call.getResponse(); //Response object containing status code, headers, body, etc.
}
Kamil Nękanowicz
  • 6,254
  • 7
  • 34
  • 51

0 Answers0