@Deprecated @ApiStatus.ScheduledForRemoval public abstract class CocWebApiInterface extends AbstractWebApiInterface<CocWebApiClient,CocWebApiRequest,CocWebApiResponse>
Abstract CocWebApiInterface class.
VERSION_1, VERSION_2, VERSION_3
Constructor and Description |
---|
CocWebApiInterface(CocWebApiClient client)
Deprecated.
Default Constructor
|
Modifier and Type | Method and Description |
---|---|
protected void |
handleError(AbstractWebResponse res,
Throwable error)
Deprecated.
The default error handler.
|
asCollectionOf, asListOf, builder, configureBuilder, fromJson, fromJson, sendRequest
public CocWebApiInterface(CocWebApiClient client)
Default Constructor
client
- A CocWebApiClient
instanceprotected void handleError(AbstractWebResponse res, Throwable error)
Handle Error Events
handleError
in class AbstractWebApiInterface<CocWebApiClient,CocWebApiRequest,CocWebApiResponse>
res
- An instance of AbstractWebApiResponse
or null
if an exception was thrown.error
- A Throwable
instance or null
if no error has occured.Copyright © 2016–2024. All rights reserved.