On Nov 29, 2007, at 4:32 PM, Rob Heittman wrote:

The warnings to the user (cough Checked Exceptions /cough) should come in when you try to confess the builder into a URI, Reference, or String and it doesn't contain enough pieces and parts to have meaning.

If, as the implementor, you want to be lazy, simply use java.net.URI to do the work using the:

URI(String scheme, String userInfo, String host, int port, String path, String query, String fragment)

constructor and reuse java.net.URISyntaxException as-is. (There's no need to invent another exception when the one included in the JDK will work just fine.)

- Paul

Reply via email to