public class ErrorUtil
extends java.lang.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 java.io.IOException,
ChallongeException
response - The response that will be parsedjava.io.IOException - Problems with connectionChallongeException - The parsed exception