public static URL build(@Nonnull final String url) {
		Check.notNull(url, "url");

		URL ret = null;
		try {
			ret = new URL(url);
		} catch (final MalformedURLException e) {
			throw new IllegalStateOfArgumentException("The given string is not a valid URL: " + url, e);
		}
		return ret;
	}
public static URL build ( @ Nonnull final String url ) { Check . notNull ( url , "url" ) ; URL ret = null ; try { ret = new URL ( url ) ; } catch ( final MalformedURLException e ) { throw new IllegalStateOfArgumentException ( "The given string is not a valid URL: " + url , e ) ; } return ret ; }
Creates an {@code URL} instance from the given {@code String} representation.<br>
<br>
This method tunnels a {@link MalformedURLException} by an {@link IllegalStateOfArgumentException}.

@param url
{@code String} representation of an {@code URL}
@return new {@code URL} instance
@throws net.sf.qualitycheck.exception.IllegalNullArgumentException
if the given argument is {@code null}
@throws IllegalStateOfArgumentException
if the string representation of the given URL is invalid and a {@link MalformedURLException} occurs