JIRA

  • Log In Access more options
    • Online Help
    • GreenHopper Help
    • Agile Answers
    • Keyboard Shortcuts
    • About JIRA
    • JIRA Credits
    • What’s New
  • Dashboards Access more options (Alt+d)
  • Projects Access more options (Alt+p)
  • Issues Access more options (Alt+i)
  • Agile
  • Twitter4J
  • TFJ-275

add some test methods to TwitterException which make it easier to determine the cause of the exception

  • Log In
  • Views
    • XML
    • Word
    • Printable

Details

  • Type: New Feature New Feature
  • Status: Closed Closed
  • Priority: Major Major
  • Resolution: Fixed
  • Affects Version/s: None
  • Fix Version/s: 2.1.2
  • Component/s: Core
  • Labels:
    None

Description

TwitterException.resourceNotFound() : returns true when the response status code is 404
TwitterException.isNetworkIssue() : returns true when the exception is caused by connection/read timeout
TwitterException.exceededRateLimit() : returns true when reached the rate limit

Activity

  • All
  • Comments
  • History
  • Activity
  • Commits
Hide
Permalink
Yusuke Yamamoto added a comment - 09/Apr/10 8:37 AM
Added:
TwitterException.isCausedByNetworkIssue()
TwitterException.exceededRateLimitation()
TwitterException.resourceNotFound()
Show
Yusuke Yamamoto added a comment - 09/Apr/10 8:37 AM Added: TwitterException.isCausedByNetworkIssue() TwitterException.exceededRateLimitation() TwitterException.resourceNotFound()

People

  • Assignee:
    Yusuke Yamamoto
    Reporter:
    Yusuke Yamamoto
Vote (0)
Watch (0)

Dates

  • Created:
    25/Dec/09 11:10 PM
    Updated:
    19/Jul/11 5:36 PM
    Resolved:
    09/Apr/10 8:37 AM
  • Atlassian JIRA (v5.0.4#731-sha1:3aa7374)
  • Report a problem
  • Powered by a free Atlassian JIRA open source license for Yusuke Yamamoto. Try JIRA - bug tracking software for your team.