Interface ApplicationConnection.CommunicationErrorHandler

Enclosing class:
ApplicationConnection

public static interface ApplicationConnection.CommunicationErrorHandler
Allows custom handling of communication errors.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    onError(String details, int statusCode)
    Called when a communication error has occurred.
  • Method Details

    • onError

      boolean onError(String details, int statusCode)
      Called when a communication error has occurred. Returning true from this method suppresses error handling.
      Parameters:
      details - A string describing the error.
      statusCode - The HTTP status code (e.g. 404, etc).
      Returns:
      true if the error reporting should be suppressed, false to perform normal error reporting.