twitter4j
Class TwitterException
java.lang.Object
java.lang.Throwable
java.lang.Exception
twitter4j.TwitterException
- All Implemented Interfaces:
- java.io.Serializable
public class TwitterException
- extends java.lang.Exception
An exception class that will be thrown when TwitterAPI calls are failed.
In case the Twitter server returned HTTP error code, you can get the HTTP status code using getStatusCode() method.
- Author:
- Yusuke Yamamoto - yusuke at mac.com
- See Also:
- Serialized Form
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 |
statusCode
private int statusCode
serialVersionUID
private static final long serialVersionUID
- See Also:
- Constant Field Values
TwitterException
public TwitterException(java.lang.String msg)
TwitterException
public TwitterException(java.lang.String msg,
int statusCode)
TwitterException
public TwitterException(java.lang.String msg,
java.lang.Exception cause)
TwitterException
public TwitterException(java.lang.String msg,
java.lang.Exception cause,
int statusCode)
getStatusCode
public int getStatusCode()