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
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:
-
Constructor Summary
ConstructorDescriptionFacebookNetworkException
(Integer httpStatusCode) Creates an exception with the given message and HTTP status code.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
Modifier and TypeMethodDescriptionGets 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 Details
-
FacebookNetworkException
Creates an exception with the given message and cause.- Parameters:
cause
- The exception that caused this exception to be thrown.
-
FacebookNetworkException
Creates an exception with the given message and HTTP status code.- Parameters:
httpStatusCode
- The HTTP response status code.
-
FacebookNetworkException
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.
-