FileDocCategorySizeDatePackage
FacebookException.javaAPI DocGoogle Facebook API v1.43498Tue Oct 23 20:32:14 BST 2007com.facebook.api

FacebookException

public class FacebookException extends 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.

Fields Summary
private static final long
serialVersionUID
Serialization thing.
private int
_code
Constructors Summary
public FacebookException(int code, String msg)
Constructor

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


                                
         
        super(msg);
        _code = code;
    
Methods Summary
public intgetCode()
See http://wiki.developers.facebook.com/index.php/Error_codes for more information

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

        return _code;