Example usage for Java twitter4j TwitterException fields, constructors, methods, implement or subclass
The text is from its open source code.
TwitterException(String message) | |
TwitterException(Exception cause) | |
TwitterException(String message, Throwable cause) | |
TwitterException(String message, HttpResponse res) |
boolean | exceededRateLimitation() Tests if the exception is caused by rate limitation exceed |
int | getAccessLevel() |
int | getErrorCode() |
String | getErrorMessage() Returns error message from the API if available. |
String | getExceptionCode() Returns a hexadecimal representation of this exception stacktrace. An exception code is a hexadecimal representation of the stacktrace which enables it easier to Google known issues. Format : XXXXXXXX:YYYYYYYY[ XX:YY] Where XX is a hash code of stacktrace without line number YY is a hash code of stacktrace excluding line number [-XX:YY] will appear when this instance a root cause |
String | getMessage() |
RateLimitStatus | getRateLimitStatus() |
int | getRetryAfter() Returns int value of "Retry-After" response header (Search API) or seconds_until_reset (REST API). |
int | getStatusCode() |
boolean | isCausedByNetworkIssue() Tests if the exception is caused by network issue |
boolean | isErrorMessageAvailable() Tests if error message from the API is available |
boolean | resourceNotFound() Tests if the exception is caused by non-existing resource |
String | toString() |