com.facebook
Class FacebookServiceException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by com.facebook.FacebookException
                  extended by com.facebook.FacebookServiceException
All Implemented Interfaces:
Serializable

public class FacebookServiceException
extends FacebookException

Represents an error returned from the Facebook service in response to a request.

See Also:
Serialized Form

Constructor Summary
FacebookServiceException(FacebookRequestError error, String errorMessage)
          Constructs a new FacebookServiceException.
 
Method Summary
 FacebookRequestError getRequestError()
          Returns an object that encapsulates complete information representing the error returned by Facebook.
 String toString()
           
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

FacebookServiceException

public FacebookServiceException(FacebookRequestError error,
                                String errorMessage)
Constructs a new FacebookServiceException.

Parameters:
error - the error from the request
Method Detail

getRequestError

public final FacebookRequestError getRequestError()
Returns an object that encapsulates complete information representing the error returned by Facebook.

Returns:
complete information representing the error.

toString

public final String toString()
Overrides:
toString in class Throwable