public interface ClientErrorHandler
Examples:
Modifier and Type | Field and Description |
---|---|
static com.google.common.reflect.TypeToken<ClientErrorHandler> |
TYPE
A type token for this type.
|
Modifier and Type | Method and Description |
---|---|
void |
error(Context context,
int statusCode)
Handle a client error.
|
static final com.google.common.reflect.TypeToken<ClientErrorHandler> TYPE
void error(Context context, int statusCode) throws java.lang.Exception
context
- The contextstatusCode
- The 4xx status code that explains the problemjava.lang.Exception
- if a problem occurs reacting to the client error (will be forwarded to the server error handler)