Class FacebookNetworkException

All Implemented Interfaces:
Serializable

public class FacebookNetworkException
extends FacebookException
Indicates that a network error occurred while trying to connect to the Facebook API endpoint.

Examples: No network adapter available, API endpoint is down.

Author:
Mark Allen
See Also:
Serialized Form
  • Constructor Details

    • FacebookNetworkException

      Creates an exception with the given message and cause.
      Parameters:
      cause - The exception that caused this exception to be thrown.
    • FacebookNetworkException

      public FacebookNetworkException​(Integer httpStatusCode)
      Creates an exception with the given message and HTTP status code.
      Parameters:
      httpStatusCode - The HTTP response status code.
    • FacebookNetworkException

      public FacebookNetworkException​(Throwable cause, Integer httpStatusCode)
      Creates an exception with the given message, cause, and HTTP status code.
      Parameters:
      cause - The exception that caused this exception to be thrown.
      httpStatusCode - The HTTP response status code.
  • Method Details

    • getHttpStatusCode

      Gets the HTTP response status code.
      Returns:
      The HTTP response status code.