rekbun / bitlyj

Automatically exported from code.google.com/p/bitlyj
0 stars 0 forks source link

Bitly.shorten must throw not RuntimeException but BitlyException #10

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. call Bitly.shorten(String)
2. bit.ly API returns no 200 response
3. Bitly.shorten(String) throws RuntimException

What is the expected output? What do you see instead?
  Bitly.shorten(String) throws BitlyException

What version of the product are you using? On what operating system?
  2.0.0

Please provide any additional information below.
  in SimpleProvider:100 fetchUrl throws BitlyException, but in 105 all exceptions are catched.

Original issue reported on code.google.com by dai.0...@gmail.com on 24 Apr 2012 at 11:14