Hi,
the current javadoc of UriBuilder.build() says (see below), that all
variables are replaced by "", the throws section says, that a
UriBuilderException is thrown.
IMO the UriBuilderException is the better solution
best regards
Stephan
public abstract java.net.URI *build*() throws UriBuilderException <
https://jsr311.dev.java.net/nonav/javadoc/javax/ws/rs/core/UriBuilderException.html>
Build a URI, any URI template parameters will be replaced by the
empty string. The |build| method does not change the state of the
|UriBuilder| and it may be called multiple times on the same builder
instance.
*Returns:*
the URI built from the UriBuilder
*Throws:*
|UriBuilderException
<
https://jsr311.dev.java.net/nonav/javadoc/javax/ws/rs/core/UriBuilderException.html>|
- if there are any URI template parameters, or if a URI cannot
be constructed based on the current state of the builder.