com.google.code.facebookapi
Class FacebookException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by com.google.code.facebookapi.FacebookException
All Implemented Interfaces:
java.io.Serializable

public class FacebookException
extends java.lang.Exception

A FacebookException is thrown by the FacebookRestClient to indicate that it encountered an error when trying to process an API request to Facebook. In most cases, the error codes are specified by a response from the Facebook API server, though there are a few exceptions.

See Also:
Serialized Form

Constructor Summary
FacebookException(int code, java.lang.String msg)
          Constructor
 
Method Summary
 int getCode()
          See http://wiki.developers.facebook.com/index.php/Error_codes for more information
 
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
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

FacebookException

public FacebookException(int code,
                         java.lang.String msg)
Constructor

Parameters:
code - the error code that caused this exception (see http://wiki.developers.facebook.com/index.php/Error_codes)
msg - a message describing the nature of the error
Method Detail

getCode

public int getCode()
See http://wiki.developers.facebook.com/index.php/Error_codes for more information

Returns:
the error code that caused this Facebook exception to be thrown.


Copyright © 2010. All Rights Reserved.