DescriptionThis CL introduces a trivial wrapper UriException class, which wraps IllegalArgumentException (itself a RuntimeException), and changes the Uri class to throw it exclusively rather than IllegalArgumentException or RuntimeException directly.
This allows calling code to wrap relevant methods in semantically-bounded try/catch blocks without our having to have Uri's methods throw a checked exception, which in turn would necessitate large numbers of downstream changes.
In this way, we can slowly phase in use of UriException, to the point that eventually we may find it relatively easy to change this exception to a checked version of itself with minimal trouble.
Comments welcome.
Patch Set 1 #
MessagesTotal messages: 3
|
|||||||||||||||||||