Package com.restfb.exception
Class FacebookNetworkException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- com.restfb.exception.FacebookException
-
- com.restfb.exception.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 Summary
Constructors Constructor Description FacebookNetworkException(Integer httpStatusCode)
Creates an exception with the given message and HTTP status code.FacebookNetworkException(Throwable cause)
Creates an exception with the given message and cause.FacebookNetworkException(Throwable cause, Integer httpStatusCode)
Creates an exception with the given message, cause, and HTTP status code.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Integer
getHttpStatusCode()
Gets the HTTP response status code.-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Constructor Detail
-
FacebookNetworkException
public FacebookNetworkException(Throwable cause)
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 Detail
-
getHttpStatusCode
public Integer getHttpStatusCode()
Gets the HTTP response status code.- Returns:
- The HTTP response status code.
-
-