facebook4j
Class FacebookException
java.lang.Object
java.lang.Throwable
java.lang.Exception
facebook4j.FacebookException
- All Implemented Interfaces:
- Serializable
public class FacebookException
- extends Exception
An exception class that will be thrown when Facebook Graph API calls are failed.
In case the Facebook server returned HTTP error code, you can get the HTTP status code using getStatusCode() method.
- Author:
- Ryuji Yamashita - roundrop at gmail.com
- See Also:
- Serialized Form
FacebookException
public FacebookException(String message,
Throwable cause)
FacebookException
public FacebookException(String message,
facebook4j.internal.http.HttpResponse res)
FacebookException
public FacebookException(String message)
FacebookException
public FacebookException(Throwable cause)
FacebookException
public FacebookException(String message,
Throwable cause,
int statusCode)
getMessage
public String getMessage()
- Overrides:
getMessage
in class Throwable
getStatusCode
public int getStatusCode()
getErrorType
public String getErrorType()
getErrorMessage
public String getErrorMessage()
getErrorCode
public int getErrorCode()
getErrorSubcode
public int getErrorSubcode()
getResponseHeader
public String getResponseHeader(String name)
isCausedByNetworkIssue
public boolean isCausedByNetworkIssue()
- Tests if the exception is caused by network issue
- Returns:
- if the exception is caused by network issue
resourceNotFound
public boolean resourceNotFound()
- Tests if the exception is caused by non-existing resource
- Returns:
- if the exception is caused by non-existing resource
equals
public boolean equals(Object o)
- Overrides:
equals
in class Object
hashCode
public int hashCode()
- Overrides:
hashCode
in class Object
toString
public String toString()
- Overrides:
toString
in class Throwable
Copyright © 2019. All rights reserved.