Interface ErrorCodeHandler<T>


public interface ErrorCodeHandler<T>
A generic error callback interface for an error code returned from the server
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    onError(Response<T> errorData)
    An error callback can be invoked with a different type from the success callback
  • Method Details

    • onError

      void onError(Response<T> errorData)

      An error callback can be invoked with a different type from the success callback

      Parameters
      • errorData: the data matching the error.