[tor-bugs] #11415 [Orbot]: jtorctl: Throw checked exceptions instead of unchecked exceptions

Tor Bug Tracker & Wiki blackhole at torproject.org
Sat Apr 5 19:59:17 UTC 2014


#11415: jtorctl: Throw checked exceptions instead of unchecked exceptions
-------------------------+-----------------------
 Reporter:  akwizgran    |          Owner:  n8fr8
     Type:  enhancement  |         Status:  new
 Priority:  minor        |      Milestone:
Component:  Orbot        |        Version:
 Keywords:               |  Actual Points:
Parent ID:  #11414       |         Points:
-------------------------+-----------------------
 jtorctl throws unchecked RuntimeExceptions if it receives an error
 response or malformed response from Tor - users of the library have to
 catch these without being warned by the API. This patch converts jtorctl's
 RuntimeException subclasses into IOException subclasses. This is safer for
 users of the library and better conveys what's happened (an IO error).

--
Ticket URL: <https://trac.torproject.org/projects/tor/ticket/11415>
Tor Bug Tracker & Wiki <https://trac.torproject.org/>
The Tor Project: anonymity online


More information about the tor-bugs mailing list