public final class ErrorUtils
extends java.lang.Object
CloudError
instances from response objects.Modifier and Type | Method and Description |
---|---|
static void |
initialize(retrofit2.Retrofit retrofit)
Initializes static retrofit instance.
|
static CloudError |
parseError(retrofit2.Response<?> response)
Extracts an error from the response object.
|
public static void initialize(retrofit2.Retrofit retrofit)
retrofit
- the retrofit instance.public static CloudError parseError(retrofit2.Response<?> response)
response
- the response object.CloudError
.