## Uses of Class
twitter4j.TwitterException

Packages that use TwitterException
twitter4j: general package for Twitter4J
twitter4j.api: APIs represents Twitter API resources
twitter4j.auth: OAuth related classes
twitter4j.json: this package is deprecated.

### Uses of TwitterException in twitter4j

Methods in twitter4j that return TwitterException
`TwitterException` HttpResponseEvent.`getTwitterException()` returns the TwitterException associated with the event

Methods in twitter4j that throw TwitterException
`JSONArray` HttpResponse.`asJSONArray()` Returns the response body as twitter4j.JSONArray. Disconnects the internal HttpURLConnection silently.
`JSONObject` HttpResponse.`asJSONObject()` Returns the response body as twitter4j.JSONObject. Disconnects the internal HttpURLConnection silently.
`String` HttpResponse.`asString()` Returns the response body as string. Disconnects the internal HttpURLConnection silently.
`static AccountTotals` TwitterObjectFactory.`createAccountTotals(String rawJSON)` Constructs an AccountTotals object from rawJSON string.
`static Category` TwitterObjectFactory.`createCategory(String rawJSON)` Constructs a Category object from rawJSON string.
`static DirectMessage` TwitterObjectFactory.`createDirectMessage(String rawJSON)` Constructs a DirectMessage object from rawJSON string.
`static IDs` TwitterObjectFactory.`createIDs(String rawJSON)` Constructs a IDs object from rawJSON string.
`static Location` TwitterObjectFactory.`createLocation(String rawJSON)` Constructs a Location object from rawJSON string.
`static Object` TwitterObjectFactory.`createObject(String rawJSON)` Construct an object from rawJSON string.
`static OEmbed` TwitterObjectFactory.`createOEmbed(String rawJSON)` Constructs an OEmbed object from rawJSON string.
`static Place` TwitterObjectFactory.`createPlace(String rawJSON)` Constructs a Place object from rawJSON string.
`static Map<String,RateLimitStatus>` TwitterObjectFactory.`createRateLimitStatus(String rawJSON)` Constructs a RateLimitStatus object from rawJSON string.
`static Relationship` TwitterObjectFactory.`createRelationship(String rawJSON)` Constructs a Relationship object from rawJSON string.
`static SavedSearch` TwitterObjectFactory.`createSavedSearch(String rawJSON)` Constructs a SavedSearch object from rawJSON string.
`static Status` TwitterObjectFactory.`createStatus(String rawJSON)` Constructs a Status object from rawJSON string.
`static Trend` TwitterObjectFactory.`createTrend(String rawJSON)` Constructs a Trend object from rawJSON string.
`static Trends` TwitterObjectFactory.`createTrends(String rawJSON)` Constructs a Trends object from rawJSON string.
`static User` TwitterObjectFactory.`createUser(String rawJSON)` Constructs a User object from rawJSON string.
`static UserList` TwitterObjectFactory.`createUserList(String rawJSON)` Constructs a UserList object from rawJSON string.
`HttpResponse` HttpClientBase.`delete(String url)`
`HttpResponse` HttpClient.`delete(String url)`
`HttpResponse` HttpClientBase.`delete(String url, HttpParameter[] parameters, Authorization authorization, HttpResponseListener listener)`
`HttpResponse` HttpClient.`delete(String url, HttpParameter[] parameters, Authorization authorization, HttpResponseListener listener)`
`HttpResponse` HttpClientBase.`get(String url)`
`HttpResponse` HttpClient.`get(String url)`
`HttpResponse` HttpClientBase.`get(String url, HttpParameter[] parameters, Authorization authorization, HttpResponseListener listener)`
`HttpResponse` HttpClient.`get(String url, HttpParameter[] parameters, Authorization authorization, HttpResponseListener listener)`
`long` TwitterBase.`getId()` Returns authenticating user's user id. This method may internally call verifyCredentials() on the first invocation if - this instance is authenticated by Basic and email address is supplied instead of screen name, or - this instance is authenticated by OAuth.

`String`

TwitterBase.`getScreenName()`
Returns authenticating user's screen name.
This method may internally call verifyCredentials() on the first invocation if
- this instance is authenticated by Basic and email address is supplied instead of screen name, or - this instance is authenticated by OAuth.
Note that this method returns a transiently cached (will be lost upon serialization) screen name while it is possible to change a user's screen name.

`HttpResponse` HttpClientBase.`head(String url)`
`HttpResponse` HttpClient.`head(String url)`
`HttpResponse` HttpClientBase.`post(String url)`
`HttpResponse` HttpClient.`post(String url)`
`HttpResponse` HttpClientBase.`post(String url, HttpParameter[] parameters, Authorization authorization, HttpResponseListener listener)`
`HttpResponse` HttpClient.`post(String url, HttpParameter[] parameters, Authorization authorization, HttpResponseListener listener)`
`HttpResponse` HttpClientBase.`put(String url)`
`HttpResponse` HttpClient.`put(String url)`
`HttpResponse` HttpClientBase.`put(String url, HttpParameter[] parameters, Authorization authorization, HttpResponseListener listener)`
`HttpResponse` HttpClient.`put(String url, HttpParameter[] parameters, Authorization authorization, HttpResponseListener listener)`
`HttpResponse` HttpClientBase.`request(HttpRequest req)`
`HttpResponse` HttpClient.`request(HttpRequest req)`
`HttpResponse` HttpClientBase.`request(HttpRequest req, HttpResponseListener listener)`
`HttpResponse` HttpClient.`request(HttpRequest req, HttpResponseListener listener)`

### Uses of TwitterException in twitter4j.api

Methods in twitter4j.api that throw TwitterException
`User` UsersResources.`createBlock(long userId)` Blocks the user specified in the ID parameter as the authenticating user.
`User` UsersResources.`createBlock(String screenName)` Blocks the user specified in the ID parameter as the authenticating user.
`Status` FavoritesResources.`createFavorite(long id)` Favorites the status specified in the ID parameter as the authenticating user.
`User` FriendsFollowersResources.`createFriendship(long userId)` Allows the authenticating users to follow the user specified in the ID parameter. Returns the befriended user in the requested format when successful.
`User` FriendsFollowersResources.`createFriendship(long userId, boolean follow)` Allows the authenticating users to follow the user specified in the ID parameter. Returns the befriended user in the requested format when successful.
`User` FriendsFollowersResources.`createFriendship(String screenName)` Allows the authenticating users to follow the user specified in the ID parameter. Returns the befriended user in the requested format when successful.
`User` FriendsFollowersResources.`createFriendship(String screenName, boolean follow)` Allows the authenticating users to follow the user specified in the ID parameter. Returns the befriended user in the requested format when successful.
`User` UsersResources.`createMute(long userId)` Mutes the user specified in the ID parameter as the authenticating user.
`User` UsersResources.`createMute(String screenName)` Mutes the user specified in the screen name parameter as the authenticating user.
`SavedSearch` SavedSearchesResources.`createSavedSearch(String query)` Creates a saved search for the authenticated user.
`UserList` ListsResources.`createUserList(String listName, boolean isPublicList, String description)` Creates a new list for the authenticated user.
`UserList` ListsResources.`createUserListMember(long listId, long userId)` Adds a member to a list.
`UserList` ListsResources.`createUserListMember(long ownerId, String slug, long userId)` Adds a member to a list.
`UserList` ListsResources.`createUserListMember(String ownerScreenName, String slug, long userId)` Adds a member to a list.
`UserList` ListsResources.`createUserListMembers(long listId, long... userIds)` Adds multiple members to a list, by specifying a comma-separated list of member ids or screen names.
`UserList` ListsResources.`createUserListMembers(long listId, String... screenNames)` Adds multiple members to a list, by specifying a comma-separated list of member ids or screen names.
`UserList` ListsResources.`createUserListMembers(long ownerId, String slug, long... userIds)` Adds multiple members to a list, by specifying a comma-separated list of member ids or screen names.
`UserList` ListsResources.`createUserListMembers(long ownerId, String slug, String... screenNames)` Adds multiple members to a list, by specifying a comma-separated list of member ids or screen names.
`UserList` ListsResources.`createUserListMembers(String ownerScreenName, String slug, long... userIds)` Adds multiple members to a list, by specifying a comma-separated list of member ids or screen names.
`UserList` ListsResources.`createUserListMembers(String ownerScreenName, String slug, String... screenNames)` Adds multiple members to a list, by specifying a comma-separated list of member ids or screen names.
`UserList` ListsResources.`createUserListSubscription(long listId)` Make the authenticated user follow the specified list.
`UserList` ListsResources.`createUserListSubscription(long ownerId, String slug)` Make the authenticated user follow the specified list.
`UserList` ListsResources.`createUserListSubscription(String ownerScreenName, String slug)` Make the authenticated user follow the specified list.
`User` UsersResources.`destroyBlock(long userId)` Un-blocks the user specified in the ID parameter as the authenticating user.
`User` UsersResources.`destroyBlock(String screen_name)` Un-blocks the user specified in the ID parameter as the authenticating user.
`DirectMessage` DirectMessagesResources.`destroyDirectMessage(long id)` Deletes the direct message specified in the required ID parameter.
`Status` FavoritesResources.`destroyFavorite(long id)` Un-favorites the status specified in the ID parameter as the authenticating user.
`User` FriendsFollowersResources.`destroyFriendship(long userId)` Allows the authenticating users to unfollow the user specified in the ID parameter. Returns the unfollowed user in the requested format when successful.
`User` FriendsFollowersResources.`destroyFriendship(String screenName)` Allows the authenticating users to unfollow the user specified in the ID parameter. Returns the unfollowed user in the requested format when successful.
`User` UsersResources.`destroyMute(long userId)` Un-mutes the user specified in the ID parameter as the authenticating user.
`User` UsersResources.`destroyMute(String screenName)` Un-mutes the user specified in the screen name parameter as the authenticating user.
`SavedSearch` SavedSearchesResources.`destroySavedSearch(long id)` Destroys a saved search for the authenticated user.
`Status` TweetsResources.`destroyStatus(long statusId)` Destroys the status specified by the required ID parameter. Usage note: The authenticating user must be the author of the specified status.
`UserList` ListsResources.`destroyUserList(long listId)` Deletes the specified list.
`UserList` ListsResources.`destroyUserList(long ownerId, String slug)` Deletes the specified list.
`UserList` ListsResources.`destroyUserList(String ownerScreenName, String slug)` Deletes the specified list.
`UserList` ListsResources.`destroyUserListMember(long listId, long userId)` Removes the specified member from the list.
`UserList` ListsResources.`destroyUserListMember(long listId, String screenName)` Removes the specified members from the list.
`UserList` ListsResources.`destroyUserListMember(long ownerId, String slug, long userId)` Removes the specified member from the list.
`UserList` ListsResources.`destroyUserListMember(String ownerScreenName, String slug, long userId)` Removes the specified member from the list.
`UserList` ListsResources.`destroyUserListMembers(long listId, long[] userIds)` Removes the specified members from the list.
`UserList` ListsResources.`destroyUserListMembers(long listId, String[] screenNames)` Removes the specified members from the list.
`UserList` ListsResources.`destroyUserListMembers(String ownerScreenName, String slug, String[] screenNames)` Removes the specified members from the list.
`UserList` ListsResources.`destroyUserListSubscription(long listId)` Unsubscribes the authenticated user form the specified list.
`UserList` ListsResources.`destroyUserListSubscription(long ownerId, String slug)` Unsubscribes the authenticated user form the specified list.
`UserList` ListsResources.`destroyUserListSubscription(String ownerScreenName, String slug)` Unsubscribes the authenticated user form the specified list.
`AccountSettings` UsersResources.`getAccountSettings()` Returns the current trend, geo, language, timezone and sleep time information for the authenticating user.
`TwitterAPIConfiguration` HelpResources.`getAPIConfiguration()` Returns the current configuration used by Twitter including twitter.com slugs which are not usernames, maximum photo resolutions, and t.co URL lengths. It is recommended applications request this endpoint when they are loaded, but no more than once a day.
`ResponseList<Location>` TrendsResources.`getAvailableTrends()` Returns the locations that Twitter has trending topic information for.
`IDs` UsersResources.`getBlocksIDs()` Returns an array of numeric user ids the authenticating user is blocking.
`IDs` UsersResources.`getBlocksIDs(long cursor)` Returns an array of numeric user ids the authenticating user is blocking.
`PagableResponseList<User>` UsersResources.`getBlocksList()` Returns a list of user objects that the authenticating user is blocking.
`PagableResponseList<User>` UsersResources.`getBlocksList(long cursor)` Returns a list of user objects that the authenticating user is blocking.

`ResponseList<Location>`

TrendsResources.`getClosestTrends(GeoLocation location)`
Returns the locations that Twitter has trending topic information for, closest to a specified location.
The response is an array of "locations" that encode the location's WOEID and some other human-readable information such as a canonical name and country the location belongs in.
A WOEID is a Yahoo! Where On Earth ID.

`ResponseList<User>` UsersResources.`getContributees(long userId)` Returns an array of users that the specified user can contribute to.
`ResponseList<User>` UsersResources.`getContributees(String screenName)` Returns an array of users that the specified user can contribute to.
`ResponseList<User>` UsersResources.`getContributors(long userId)` Returns an array of users who can contribute to the specified account.
`ResponseList<User>` UsersResources.`getContributors(String screenName)` Returns an array of users who can contribute to the specified account.
`ResponseList<DirectMessage>` DirectMessagesResources.`getDirectMessages()` Deprecated. use `DirectMessagesResources.getDirectMessages(int)` instead
`DirectMessageList` DirectMessagesResources.`getDirectMessages(int count)` Returns all Direct Message events (both sent and received) within the last 30 days.
`DirectMessageList` DirectMessagesResources.`getDirectMessages(int count, String cursor)` Returns all Direct Message events (both sent and received) within the last 30 days.
`ResponseList<DirectMessage>` DirectMessagesResources.`getDirectMessages(Paging paging)` Deprecated. use `DirectMessagesResources.getDirectMessages(int)` instead
`InputStream` DirectMessagesResources.`getDMImageAsStream(String url)` Returns a stream of the image included in direct messages.
`ResponseList<Status>` FavoritesResources.`getFavorites()` Returns the 20 most recent favorite statuses for the authenticating user or user specified by the ID parameter in the requested format.
`ResponseList<Status>` FavoritesResources.`getFavorites(long userId)` Returns the 20 most recent favorite statuses for the authenticating user or user specified by the ID parameter in the requested format.
`ResponseList<Status>` FavoritesResources.`getFavorites(long userId, Paging paging)` Returns the 20 most recent favorite statuses for the authenticating user or user specified by the ID parameter in the requested format.
`ResponseList<Status>` FavoritesResources.`getFavorites(Paging paging)` Returns the 20 most recent favorite statuses for the authenticating user or user specified by the ID parameter in the requested format.
`ResponseList<Status>` FavoritesResources.`getFavorites(String screenName)` Returns the 20 most recent favorite statuses for the authenticating user or user specified by the ID parameter in the requested format.
`ResponseList<Status>` FavoritesResources.`getFavorites(String screenName, Paging paging)` Returns the 20 most recent favorite statuses for the authenticating user or user specified by the ID parameter in the requested format.
`IDs` FriendsFollowersResources.`getFollowersIDs(long cursor)` Returns an array of numeric IDs for every user the specified user is followed by.
`IDs` FriendsFollowersResources.`getFollowersIDs(long userId, long cursor)` Returns an array of numeric IDs for every user the specified user is followed by.
`IDs` FriendsFollowersResources.`getFollowersIDs(long userId, long cursor, int count)` Returns an array of numeric IDs for every user the specified user is followed by.
`IDs` FriendsFollowersResources.`getFollowersIDs(String screenName, long cursor)` Returns an array of numeric IDs for every user the specified user is followed by.
`IDs` FriendsFollowersResources.`getFollowersIDs(String screenName, long cursor, int count)` Returns an array of numeric IDs for every user the specified user is followed by.
`PagableResponseList<User>` FriendsFollowersResources.`getFollowersList(long userId, long cursor)` Returns a cursored collection of user objects for users following the specified user. At this time, results are ordered with the most recent following first — however, this ordering is subject to unannounced change and eventual consistency issues.
`PagableResponseList<User>` FriendsFollowersResources.`getFollowersList(long userId, long cursor, int count)` Returns a cursored collection of user objects for users following the specified user. At this time, results are ordered with the most recent following first — however, this ordering is subject to unannounced change and eventual consistency issues.

`PagableResponseList<User>`

FriendsFollowersResources.`getFollowersList(long userId, long cursor, int count, boolean skipStatus, boolean includeUserEntities)`
Returns a cursored collection of user objects for users following the specified user.
At this time, results are ordered with the most recent following first — however, this ordering is subject to unannounced change and eventual consistency issues.

`PagableResponseList<User>` FriendsFollowersResources.`getFollowersList(String screenName, long cursor)` Returns a cursored collection of user objects for users following the specified user. At this time, results are ordered with the most recent following first — however, this ordering is subject to unannounced change and eventual consistency issues.
`PagableResponseList<User>` FriendsFollowersResources.`getFollowersList(String screenName, long cursor, int count)` Returns a cursored collection of user objects for users following the specified user. At this time, results are ordered with the most recent following first — however, this ordering is subject to unannounced change and eventual consistency issues.

`PagableResponseList<User>`

FriendsFollowersResources.`getFollowersList(String screenName, long cursor, int count, boolean skipStatus, boolean includeUserEntities)`
Returns a cursored collection of user objects for users following the specified user.
At this time, results are ordered with the most recent following first — however, this ordering is subject to unannounced change and eventual consistency issues.

`IDs` FriendsFollowersResources.`getFriendsIDs(long cursor)` Returns an array of numeric IDs for every user the authenticating user is following.
`IDs` FriendsFollowersResources.`getFriendsIDs(long userId, long cursor)` Returns an array of numeric IDs for every user the specified user is following.
`IDs` FriendsFollowersResources.`getFriendsIDs(long userId, long cursor, int count)` Returns an array of numeric IDs for every user the specified user is following.
`IDs` FriendsFollowersResources.`getFriendsIDs(String screenName, long cursor)` Returns an array of numeric IDs for every user the specified user is following.
`IDs` FriendsFollowersResources.`getFriendsIDs(String screenName, long cursor, int count)` Returns an array of numeric IDs for every user the specified user is following.
`PagableResponseList<User>` FriendsFollowersResources.`getFriendsList(long userId, long cursor)` Returns a cursored collection of user objects for every user the specified user is following (otherwise known as their "friends"). At this time, results are ordered with the most recent following first — however, this ordering is subject to unannounced change and eventual consistency issues.
`PagableResponseList<User>` FriendsFollowersResources.`getFriendsList(long userId, long cursor, int count)` Returns a cursored collection of user objects for every user the specified user is following (otherwise known as their "friends"). At this time, results are ordered with the most recent following first — however, this ordering is subject to unannounced change and eventual consistency issues.

`PagableResponseList<User>`

FriendsFollowersResources.`getFriendsList(long userId, long cursor, int count, boolean skipStatus, boolean includeUserEntities)`
Returns a cursored collection of user objects for every user the specified user is following (otherwise known as their "friends").
At this time, results are ordered with the most recent following first — however, this ordering is subject to unannounced change and eventual consistency issues.

`PagableResponseList<User>` FriendsFollowersResources.`getFriendsList(String screenName, long cursor)` Returns a cursored collection of user objects for every user the specified user is following (otherwise known as their "friends"). At this time, results are ordered with the most recent following first — however, this ordering is subject to unannounced change and eventual consistency issues.

`PagableResponseList<User>`

FriendsFollowersResources.`getFriendsList(String screenName, long cursor, int count)`
Returns a cursored collection of user objects for every user the specified user is following (otherwise known as their "friends").
At this time, results are ordered with the most recent following first — however, this ordering is subject to unannounced change and eventual consistency issues.

`PagableResponseList<User>`

FriendsFollowersResources.`getFriendsList(String screenName, long cursor, int count, boolean skipStatus, boolean includeUserEntities)`
Returns a cursored collection of user objects for every user the specified user is following (otherwise known as their "friends").
At this time, results are ordered with the most recent following first — however, this ordering is subject to unannounced change and eventual consistency issues.

`Place` PlacesGeoResources.`getGeoDetails(String placeId)` Find out more details of a place that was returned from the `PlacesGeoResources.reverseGeoCode(twitter4j.GeoQuery)` method.
`ResponseList<Status>` TimelinesResources.`getHomeTimeline()` Returns the 20 most recent statuses, including retweets, posted by the authenticating user and that user's friends.
`ResponseList<Status>` TimelinesResources.`getHomeTimeline(Paging paging)` Returns the 20 most recent statuses, including retweets, posted by the authenticating user and that user's friends.
`IDs` FriendsFollowersResources.`getIncomingFriendships(long cursor)` Returns an array of numeric IDs for every user who has a pending request to follow the authenticating user.
`ResponseList<HelpResources.Language>` HelpResources.`getLanguages()` Returns the list of languages supported by Twitter along with their ISO 639-1 code.
`ResponseList<User>` SuggestedUsersResources.`getMemberSuggestions(String categorySlug)` Access the users in a given category of the Twitter suggested user list and return their most recent status if they are not a protected user.
`ResponseList<Status>` TimelinesResources.`getMentionsTimeline()` Returns the 20 most recent mentions (tweets containing a users's @screen_name) for the authenticating user. The timeline returned is the equivalent of the one seen when you view your mentions on twitter.com. This method can only return up to 800 tweets. See Working with Timelines for instructions on traversing timelines.

`ResponseList<Status>`

TimelinesResources.`getMentionsTimeline(Paging paging)`
Returns the 20 most recent mentions (tweets containing a users's @screen_name) for the authenticating user.
The timeline returned is the equivalent of the one seen when you view your mentions on twitter.com.
This method can only return up to 800 tweets.
See Working with Timelines for instructions on traversing timelines.

`IDs` UsersResources.`getMutesIDs(long cursor)` Returns an array of numeric user ids the authenticating user is muting.
`PagableResponseList<User>` UsersResources.`getMutesList(long cursor)` Returns a list of user objects that the authenticating user is muting.
`IDs` FriendsFollowersResources.`getNoRetweetsFriendships()` Returns a collection of user IDs that the currently authenticated user does not want to receive retweets from.
`OEmbed` TweetsResources.`getOEmbed(OEmbedRequest req)` Returns information allowing the creation of an embedded representation of a Tweet on third party sites.
`IDs` FriendsFollowersResources.`getOutgoingFriendships(long cursor)` Returns an array of numeric IDs for every protected user for whom the authenticating user has a pending follow request.
`Trends` TrendsResources.`getPlaceTrends(int woeid)` Returns the top 10 trending topics for a specific WOEID, if trending information is available for it. The response is an array of "trend" objects that encode the name of the trending topic, the query parameter that can be used to search for the topic on Twitter Search, and the Twitter Search URL. This information is cached for 5 minutes.
`String` HelpResources.`getPrivacyPolicy()` Returns Twitter's Privacy Policy.
`Map<String,RateLimitStatus>` HelpResources.`getRateLimitStatus()` Returns the current rate limits for methods belonging to the specified resource families. Each 1.1 API resource belongs to a "resource family" which is indicated in its method documentation.
`Map<String,RateLimitStatus>` HelpResources.`getRateLimitStatus(String... resources)` Returns the current rate limits for methods belonging to the specified resource families. Each 1.1 API resource belongs to a "resource family" which is indicated in its method documentation.
`IDs` TweetsResources.`getRetweeterIds(long statusId, int count, long cursor)` Returns a collection of up to `count` user IDs belonging to users who have retweeted the tweet specified by the id parameter.
`IDs` TweetsResources.`getRetweeterIds(long statusId, long cursor)` Returns a collection of up to 100 user IDs belonging to users who have retweeted the tweet specified by the id parameter.
`ResponseList<Status>` TweetsResources.`getRetweets(long statusId)` Returns up to 100 of the first retweets of a given tweet.
`ResponseList<Status>` TimelinesResources.`getRetweetsOfMe()` Returns the 20 most recent tweets of the authenticated user that have been retweeted by others.
`ResponseList<Status>` TimelinesResources.`getRetweetsOfMe(Paging paging)` Returns the 20 most recent tweets of the authenticated user that have been retweeted by others.
`ResponseList<SavedSearch>` SavedSearchesResources.`getSavedSearches()` Returns the authenticated user's saved search queries.
`ResponseList<DirectMessage>` DirectMessagesResources.`getSentDirectMessages()` Deprecated. use `DirectMessagesResources.getDirectMessages(int)` instead
`ResponseList<DirectMessage>` DirectMessagesResources.`getSentDirectMessages(Paging paging)` Deprecated. use `DirectMessagesResources.getDirectMessages(int)` instead
`ResponseList<Place>` PlacesGeoResources.`getSimilarPlaces(GeoLocation location, String name, String containedWithin, String streetAddress)` Locates places near the given coordinates which are similar in name.
`ResponseList<Category>` SuggestedUsersResources.`getSuggestedUserCategories()` Access to Twitter's suggested user list.
`String` HelpResources.`getTermsOfService()` Returns Twitter's' Terms of Service.
`PagableResponseList<User>` ListsResources.`getUserListMembers(long listId, int count, long cursor)` Returns the members of the specified list.
`PagableResponseList<User>` ListsResources.`getUserListMembers(long listId, int count, long cursor, boolean skipStatus)` Returns the members of the specified list.
`PagableResponseList<User>` ListsResources.`getUserListMembers(long listId, long cursor)` Returns the members of the specified list.
`PagableResponseList<User>` ListsResources.`getUserListMembers(long ownerId, String slug, int count, long cursor)` Returns the members of the specified list.
`PagableResponseList<User>` ListsResources.`getUserListMembers(long ownerId, String slug, int count, long cursor, boolean skipStatus)` Returns the members of the specified list.
`PagableResponseList<User>` ListsResources.`getUserListMembers(long ownerId, String slug, long cursor)` Returns the members of the specified list.
`PagableResponseList<User>` ListsResources.`getUserListMembers(String ownerScreenName, String slug, int count, long cursor)` Returns the members of the specified list.
`PagableResponseList<User>` ListsResources.`getUserListMembers(String ownerScreenName, String slug, int count, long cursor, boolean skipStatus)` Returns the members of the specified list.
`PagableResponseList<User>` ListsResources.`getUserListMembers(String ownerScreenName, String slug, long cursor)` Returns the members of the specified list.
`PagableResponseList<UserList>` ListsResources.`getUserListMemberships(int count, long cursor)` List the lists the authenticating user has been added to.
`PagableResponseList<UserList>` ListsResources.`getUserListMemberships(long cursor)` List the lists the authenticating user has been added to.
`PagableResponseList<UserList>` ListsResources.`getUserListMemberships(long listMemberId, int count, long cursor)` List the lists the specified user has been added to.
`PagableResponseList<UserList>` ListsResources.`getUserListMemberships(long listMemberId, int count, long cursor, boolean filterToOwnedLists)` List the lists the specified user has been added to.
`PagableResponseList<UserList>` ListsResources.`getUserListMemberships(long listMemberId, long cursor)` List the lists the specified user has been added to.
`PagableResponseList<UserList>` ListsResources.`getUserListMemberships(long listMemberId, long cursor, boolean filterToOwnedLists)` List the lists the specified user has been added to.
`PagableResponseList<UserList>` ListsResources.`getUserListMemberships(String listMemberScreenName, int count, long cursor)` List the lists the specified user has been added to.
`PagableResponseList<UserList>` ListsResources.`getUserListMemberships(String listMemberScreenName, int count, long cursor, boolean filterToOwnedLists)` List the lists the specified user has been added to.
`PagableResponseList<UserList>` ListsResources.`getUserListMemberships(String listMemberScreenName, long cursor)` List the lists the specified user has been added to.
`PagableResponseList<UserList>` ListsResources.`getUserListMemberships(String listMemberScreenName, long cursor, boolean filterToOwnedLists)` List the lists the specified user has been added to.
`ResponseList<UserList>` ListsResources.`getUserLists(long listOwnerUserId)` List the lists of the specified user.
`ResponseList<UserList>` ListsResources.`getUserLists(long listOwnerUserId, boolean reverse)` List the lists of the specified user.
`ResponseList<UserList>` ListsResources.`getUserLists(String listOwnerScreenName)` List the lists of the specified user.
`ResponseList<UserList>` ListsResources.`getUserLists(String listOwnerScreenName, boolean reverse)` List the lists of the specified user.
`PagableResponseList<UserList>` ListsResources.`getUserListsOwnerships(long listOwnerId, int count, long cursor)` Returns the lists owned by the specified Twitter user.
`PagableResponseList<UserList>` ListsResources.`getUserListsOwnerships(long listOwnerId, long cursor)` Returns the lists owned by the specified Twitter user.
`PagableResponseList<UserList>` ListsResources.`getUserListsOwnerships(String listOwnerScreenName, int count, long cursor)` Returns the lists owned by the specified Twitter user.
`PagableResponseList<UserList>` ListsResources.`getUserListsOwnerships(String listOwnerScreenName, long cursor)` Returns the lists owned by the specified Twitter user.
`ResponseList<Status>` ListsResources.`getUserListStatuses(long listId, Paging paging)` Show tweet timeline for members of the specified list.
`ResponseList<Status>` ListsResources.`getUserListStatuses(long ownerId, String slug, Paging paging)` Show tweet timeline for members of the specified list.
`ResponseList<Status>` ListsResources.`getUserListStatuses(String ownerScreenName, String slug, Paging paging)` Show tweet timeline for members of the specified list.
`PagableResponseList<User>` ListsResources.`getUserListSubscribers(long listId, int count, long cursor)` Returns the subscribers of the specified list.
`PagableResponseList<User>` ListsResources.`getUserListSubscribers(long listId, int count, long cursor, boolean skipStatus)` Returns the subscribers of the specified list.
`PagableResponseList<User>` ListsResources.`getUserListSubscribers(long listId, long cursor)` Returns the subscribers of the specified list.
`PagableResponseList<User>` ListsResources.`getUserListSubscribers(long ownerId, String slug, int count, long cursor)` Returns the subscribers of the specified list.
`PagableResponseList<User>` ListsResources.`getUserListSubscribers(long ownerId, String slug, int count, long cursor, boolean skipStatus)` Returns the subscribers of the specified list.
`PagableResponseList<User>` ListsResources.`getUserListSubscribers(long ownerId, String slug, long cursor)` Returns the subscribers of the specified list.
`PagableResponseList<User>` ListsResources.`getUserListSubscribers(String ownerScreenName, String slug, int count, long cursor)` Returns the subscribers of the specified list.
`PagableResponseList<User>` ListsResources.`getUserListSubscribers(String ownerScreenName, String slug, int count, long cursor, boolean skipStatus)` Returns the subscribers of the specified list.
`PagableResponseList<User>` ListsResources.`getUserListSubscribers(String ownerScreenName, String slug, long cursor)` Returns the subscribers of the specified list.
`PagableResponseList<UserList>` ListsResources.`getUserListSubscriptions(long listSubscriberId, int count, long cursor)` List the lists the specified user follows.
`PagableResponseList<UserList>` ListsResources.`getUserListSubscriptions(long listSubscriberId, long cursor)` List the lists the specified user follows.
`PagableResponseList<UserList>` ListsResources.`getUserListSubscriptions(String listSubscriberScreenName, int count, long cursor)` List the lists the specified user follows.
`PagableResponseList<UserList>` ListsResources.`getUserListSubscriptions(String listSubscriberScreenName, long cursor)` List the lists the specified user follows.
`ResponseList<User>` SuggestedUsersResources.`getUserSuggestions(String categorySlug)` Access the users in a given category of the Twitter suggested user list. It is recommended that end clients cache this data for no more than one hour.
`ResponseList<Status>` TimelinesResources.`getUserTimeline()` Returns the 20 most recent statuses posted from the authenticating user.
`ResponseList<Status>` TimelinesResources.`getUserTimeline(long userId)` Returns the 20 most recent statuses posted from the authenticating user.
`ResponseList<Status>` TimelinesResources.`getUserTimeline(long userId, Paging paging)` Returns the 20 most recent statuses posted from the authenticating user.
`ResponseList<Status>` TimelinesResources.`getUserTimeline(Paging paging)` Returns the 20 most recent statuses posted from the authenticating user.
`ResponseList<Status>` TimelinesResources.`getUserTimeline(String screenName)` Returns the 20 most recent statuses posted from the authenticating user.
`ResponseList<Status>` TimelinesResources.`getUserTimeline(String screenName, Paging paging)` Returns the 20 most recent statuses posted from the authenticating user.
`ResponseList<Status>` TweetsResources.`lookup(long... ids)` Returns fully-hydrated tweet objects for up to 100 tweets per request, as specified by comma-separated values passed to the id parameter.
`ResponseList<Friendship>` FriendsFollowersResources.`lookupFriendships(long... ids)` Returns the relationship of the authenticating user to the specified users.
`ResponseList<Friendship>` FriendsFollowersResources.`lookupFriendships(String... screenNames)` Returns the relationship of the authenticating user to the specified users.
`ResponseList<User>` UsersResources.`lookupUsers(long... ids)` Return up to 100 users worth of extended information, specified by either ID, screen name, or combination of the two.
`ResponseList<User>` UsersResources.`lookupUsers(String... screenNames)` Return up to 100 users worth of extended information, specified by either ID, screen name, or combination of the two.
`void` UsersResources.`removeProfileBanner()` Removes the uploaded profile banner for the authenticating user.
`User` SpamReportingResource.`reportSpam(long userId)` The user specified in the id is blocked by the authenticated user and reported as a spammer.
`User` SpamReportingResource.`reportSpam(String screenName)` The user specified in the id is blocked by the authenticated user and reported as a spammer.
`Status` TweetsResources.`retweetStatus(long statusId)` Retweets a tweet.
`ResponseList<Place>` PlacesGeoResources.`reverseGeoCode(GeoQuery query)` Search for places (cities and neighborhoods) that can be attached to a statuses/update.
`QueryResult` SearchResource.`search(Query query)` Returns tweets that match a specified query.
`ResponseList<Place>` PlacesGeoResources.`searchPlaces(GeoQuery query)` Search for places that can be attached to a statuses/update.
`ResponseList<User>` UsersResources.`searchUsers(String query, int page)` Run a search for users similar to the Find People button on Twitter.com; the same results returned by people search on Twitter.com will be returned by using this API. Usage note: It is only possible to retrieve the first 1000 matches from this API.
`DirectMessage` DirectMessagesResources.`sendDirectMessage(long userId, String text)` Sends a new direct message to the specified user from the authenticating user.
`DirectMessage` DirectMessagesResources.`sendDirectMessage(long userId, String text, long mediaId)` Sends a new direct message to the specified user from the authenticating user.
`DirectMessage` DirectMessagesResources.`sendDirectMessage(String screenName, String text)` Sends a new direct message to the specified user from the authenticating user.
`DirectMessage` DirectMessagesResources.`showDirectMessage(long id)` Returns a single Direct Message event by the given id.
`Relationship` FriendsFollowersResources.`showFriendship(long sourceId, long targetId)` Returns detailed information about the relationship between two users.
`Relationship` FriendsFollowersResources.`showFriendship(String sourceScreenName, String targetScreenName)` Returns detailed information about the relationship between two users.
`SavedSearch` SavedSearchesResources.`showSavedSearch(long id)` Retrieve the data for a saved search owned by the authenticating user specified by the given id.
`Status` TweetsResources.`showStatus(long id)` Returns a single status, specified by the id parameter below.
`User` UsersResources.`showUser(long userId)` Returns extended information of a given user, specified by ID or screen name as per the required id parameter.
`User` UsersResources.`showUser(String screenName)` Returns extended information of a given user, specified by ID or screen name as per the required id parameter.
`UserList` ListsResources.`showUserList(long listId)` Show the specified list.
`UserList` ListsResources.`showUserList(long ownerId, String slug)` Show the specified list.
`UserList` ListsResources.`showUserList(String ownerScreenName, String slug)` Show the specified list.
`User` ListsResources.`showUserListMembership(long listId, long userId)` Check if a user is a member of the specified list. This method calls https://api.twitter.com/1.1/lists/members/show.json
`User` ListsResources.`showUserListMembership(long ownerId, String slug, long userId)` Check if a user is a member of the specified list. This method calls https://api.twitter.com/1.1/lists/members/show.json
`User` ListsResources.`showUserListMembership(String ownerScreenName, String slug, long userId)` Check if a user is a member of the specified list. This method calls https://api.twitter.com/1.1/lists/members/show.json
`User` ListsResources.`showUserListSubscription(long listId, long userId)` Check if the specified user is a subscriber of the specified list.
`User` ListsResources.`showUserListSubscription(long ownerId, String slug, long userId)` Check if the specified user is a subscriber of the specified list.
`User` ListsResources.`showUserListSubscription(String ownerScreenName, String slug, long userId)` Check if the specified user is a subscriber of the specified list.
`Status` TweetsResources.`unRetweetStatus(long statusId)` Untweets a retweeted status.
`AccountSettings` UsersResources.`updateAccountSettings(Integer trendLocationWoeid, Boolean sleepTimeEnabled, String startSleepTime, String endSleepTime, String timeZone, String lang)` Updates the current trend, geo, language, timezone and sleep time information for the authenticating user.
`AccountSettings` UsersResources.`updateAllowDmsFrom(String allowDmsFrom)` Updates the allowDmsFrom settings for the authenticating user.
`Relationship` FriendsFollowersResources.`updateFriendship(long userId, boolean enableDeviceNotification, boolean retweets)` Allows you to enable or disable retweets and device notifications from the specified user.
`Relationship` FriendsFollowersResources.`updateFriendship(String screenName, boolean enableDeviceNotification, boolean retweets)` Allows you to enable or disable retweets and device notifications from the specified user.
`User` UsersResources.`updateProfile(String name, String url, String location, String description)` Sets values that users are able to set under the "Account" tab of their settings page.
`User` UsersResources.`updateProfileBackgroundImage(File image, boolean tile)` Deprecated. Since Twitter4J 4.0.7
`User` UsersResources.`updateProfileBackgroundImage(InputStream image, boolean tile)` Updates the authenticating user's profile background image.
`void` UsersResources.`updateProfileBanner(File image)` Uploads a profile banner on behalf of the authenticating user.
`void` UsersResources.`updateProfileBanner(InputStream image)` Uploads a profile banner on behalf of the authenticating user.
`User` UsersResources.`updateProfileColors(String profileBackgroundColor, String profileTextColor, String profileLinkColor, String profileSidebarFillColor, String profileSidebarBorderColor)` Deprecated. Since Twitter4J 4.0.5
`User` UsersResources.`updateProfileImage(File image)` Updates the authenticating user's profile image.
`User` UsersResources.`updateProfileImage(InputStream image)` Updates the authenticating user's profile image.
`Status` TweetsResources.`updateStatus(StatusUpdate latestStatus)` Updates the authenticating user's status.
`Status` TweetsResources.`updateStatus(String status)` Updates the authenticating user's status.
`UserList` ListsResources.`updateUserList(long listId, String newListName, boolean isPublicList, String newDescription)` Updates the specified list.
`UserList` ListsResources.`updateUserList(long ownerId, String slug, String newListName, boolean isPublicList, String newDescription)` Updates the specified list.
`UserList` ListsResources.`updateUserList(String ownerScreenName, String slug, String newListName, boolean isPublicList, String newDescription)` Updates the specified list.
`UploadedMedia` TweetsResources.`uploadMedia(File mediaFile)` Uploads media image to be attached via `TweetsResources.updateStatus(twitter4j.StatusUpdate)` This method calls https://api.twitter.com/1.1/media/upload.json
`UploadedMedia` TweetsResources.`uploadMedia(String fileName, InputStream media)` Uploads media image to be attached via `TweetsResources.updateStatus(twitter4j.StatusUpdate)` This method calls https://api.twitter.com/1.1/media/upload.json
`UploadedMedia` TweetsResources.`uploadMediaChunked(String fileName, InputStream media)` Uploads media using chunked approach to be attached via `TweetsResources.updateStatus(twitter4j.StatusUpdate)`.
`User` UsersResources.`verifyCredentials()` Returns an HTTP 200 OK response code and a representation of the requesting user if authentication was successful; returns a 401 status code and an error message if not.

### Uses of TwitterException in twitter4j.auth

Methods in twitter4j.auth that throw TwitterException
`OAuth2Token` OAuth2Authorization.`getOAuth2Token()`
`OAuth2Token` OAuth2Support.`getOAuth2Token()` Obtains an OAuth 2 Bearer token.
`AccessToken` OAuthAuthorization.`getOAuthAccessToken()`
`AccessToken` OAuthSupport.`getOAuthAccessToken()` Returns an access token associated with this instance. If no access token is associated with this instance, this will retrieve a new access token.
`AccessToken` OAuthAuthorization.`getOAuthAccessToken(RequestToken requestToken)`
`AccessToken` OAuthSupport.`getOAuthAccessToken(RequestToken requestToken)` Retrieves an access token associated with the supplied request token and sets userId.
`AccessToken` OAuthAuthorization.`getOAuthAccessToken(RequestToken requestToken, String oauthVerifier)`
`AccessToken` OAuthSupport.`getOAuthAccessToken(RequestToken requestToken, String oauthVerifier)` Retrieves an access token associated with the supplied request token and sets userId.
`AccessToken` OAuthAuthorization.`getOAuthAccessToken(String oauthVerifier)`
`AccessToken` OAuthSupport.`getOAuthAccessToken(String oauthVerifier)` Retrieves an access token.
`AccessToken` OAuthAuthorization.`getOAuthAccessToken(String screenName, String password)`
`AccessToken` OAuthSupport.`getOAuthAccessToken(String screenName, String password)` Retrieves an access token associated with the supplied screen name and password using xAuth. In order to get access acquire AccessToken using xAuth, you must apply by sending an email to api@twitter.com — all other applications will receive an HTTP 401 error.
`RequestToken` OAuthAuthorization.`getOAuthRequestToken()`
`RequestToken` OAuthSupport.`getOAuthRequestToken()` Retrieves a request token
`RequestToken` OAuthAuthorization.`getOAuthRequestToken(String callbackURL)`
`RequestToken` OAuthSupport.`getOAuthRequestToken(String callbackURL)` Retrieves a request token
`RequestToken` OAuthAuthorization.`getOAuthRequestToken(String callbackURL, String xAuthAccessType)`
`RequestToken` OAuthSupport.`getOAuthRequestToken(String callbackURL, String xAuthAccessType)` Retrieves a request token
`RequestToken` OAuthAuthorization.`getOAuthRequestToken(String callbackURL, String xAuthAccessType, String xAuthMode)`
`RequestToken` OAuthSupport.`getOAuthRequestToken(String callbackURL, String xAuthAccessType, String xAuthMode)` Retrieves a request token
`void` OAuth2Authorization.`invalidateOAuth2Token()`
`void` OAuth2Support.`invalidateOAuth2Token()` Revokes an issued OAuth 2 Bearer Token.

### Uses of TwitterException in twitter4j.json

Methods in twitter4j.json that throw TwitterException
`static AccountTotals` DataObjectFactory.`createAccountTotals(String rawJSON)` Deprecated. Constructs an AccountTotals object from rawJSON string.
`static Category` DataObjectFactory.`createCategory(String rawJSON)` Deprecated. Constructs a Category object from rawJSON string.
`static IDs` DataObjectFactory.`createIDs(String rawJSON)` Deprecated. Constructs a IDs object from rawJSON string.
`static Location` DataObjectFactory.`createLocation(String rawJSON)` Deprecated. Constructs a Location object from rawJSON string.
`static Object` DataObjectFactory.`createObject(String rawJSON)` Deprecated. use `TwitterObjectFactory.createObject(String)` instead
`static OEmbed` DataObjectFactory.`createOEmbed(String rawJSON)` Deprecated. Constructs an OEmbed object from rawJSON string.
`static Place` DataObjectFactory.`createPlace(String rawJSON)` Deprecated. Constructs a Place object from rawJSON string.
`static Map<String,RateLimitStatus>` DataObjectFactory.`createRateLimitStatus(String rawJSON)` Deprecated. Constructs a RateLimitStatus object from rawJSON string.
`static Relationship` DataObjectFactory.`createRelationship(String rawJSON)` Deprecated. Constructs a Relationship object from rawJSON string.
`static SavedSearch` DataObjectFactory.`createSavedSearch(String rawJSON)` Deprecated. Constructs a SavedSearch object from rawJSON string.
`static Status` DataObjectFactory.`createStatus(String rawJSON)` Deprecated. Constructs a Status object from rawJSON string.
`static Trend` DataObjectFactory.`createTrend(String rawJSON)` Deprecated. Constructs a Trend object from rawJSON string.
`static Trends` DataObjectFactory.`createTrends(String rawJSON)` Deprecated. Constructs a Trends object from rawJSON string.
`static User` DataObjectFactory.`createUser(String rawJSON)` Deprecated. Constructs a User object from rawJSON string.
`static UserList` DataObjectFactory.`createUserList(String rawJSON)` Deprecated. Constructs a UserList object from rawJSON string.