Client API. The Codename One framework your app is built on: this runs on the device, not in a backend.

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.