public class TwitterException
extends java.lang.RuntimeException
Twitter methods can throw this.
This contains several subclasses which should be thrown to mark different problems. Error handling is particularly important as Twitter tends to be a bit flaky.
I believe unchecked exceptions are preferable to checked ones, because they avoid the problems caused by swallowing exceptions. But if you don't like runtime exceptions, just edit this class.
| Modifier and Type | Class and Description |
|---|---|
static class |
TwitterException.E401
An unauthorised exception.
|
static class |
TwitterException.E403
A Forbidden exception.
|
static class |
TwitterException.E404
Indicates a 404: resource does not exist error from Twitter.
|
static class |
TwitterException.E50X
A code 50X error (e.g.
|
static class |
TwitterException.RateLimit
Indicates a rate limit error (i.e.
|
static class |
TwitterException.Timeout
A timeout exception - probably caused by Twitter being overloaded.
|
static class |
TwitterException.Unexplained
Something has gone wrong.
|
| Constructor and Description |
|---|
TwitterException(java.lang.String string) |
TwitterException(java.lang.String string,
java.lang.String additionalInfo) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getAdditionalInfo() |
void |
setAdditionalInfo(java.lang.String additionalInfo) |
Copyright © 2014 gvSIG Association. All Rights Reserved.