public class ErrorUtil extends Object
| Constructor and Description |
|---|
ErrorUtil(retrofit2.Retrofit retrofit) |
| Modifier and Type | Method and Description |
|---|---|
void |
parseException(retrofit2.Response<?> response)
This method takes a Retrofit response and throws an exception parsed from the response body
|
public void parseException(retrofit2.Response<?> response)
throws IOException,
ChallongeException
response - The response that will be parsedIOException - Problems with connectionChallongeException - The parsed exceptionCopyright © 2016. All rights reserved.