com.restfb.exception
Class FacebookNetworkException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by com.restfb.exception.FacebookException
                  extended by 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
FacebookNetworkException(String message, Integer httpStatusCode)
          Creates an exception with the given message and HTTP status code.
FacebookNetworkException(String message, Throwable cause)
          Creates an exception with the given message and cause.
FacebookNetworkException(String message, Throwable cause, Integer httpStatusCode)
          Creates an exception with the given message, cause, and HTTP status code.
 
Method Summary
 Integer getHttpStatusCode()
          Gets the HTTP response status code.
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

FacebookNetworkException

public FacebookNetworkException(String message,
                                Throwable cause)
Creates an exception with the given message and cause.

Parameters:
message - A message describing this exception.
cause - The exception that caused this exception to be thrown.

FacebookNetworkException

public FacebookNetworkException(String message,
                                Integer httpStatusCode)
Creates an exception with the given message and HTTP status code.

Parameters:
message - A message describing this exception.
httpStatusCode - The HTTP response status code.

FacebookNetworkException

public FacebookNetworkException(String message,
                                Throwable cause,
                                Integer httpStatusCode)
Creates an exception with the given message, cause, and HTTP status code.

Parameters:
message - A message describing this exception.
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.


RestFB 1.6.8. Copyright © 2010-2011 Mark Allen. All Rights Reserved.