public interface ErrorCodeHandler<T>

A generic error callback interface for an error code returned from the server

Methods

public abstract void onError(Response<T> errorData)An error callback can be invoked with a different type from the success callback

Method details

onError

public abstract void onError(Response<T> errorData)
An error callback can be invoked with a different type from the success callback

Parameters

errorData Response<T>
the data matching the error.