meteo-core/src/main/java/no/api/meteo/util/MeteoNetUtils.java
public static URI createUri(String uri) throws MeteoException {
        if (uri == null) {
            throw new MeteoException("URI is null");
        }
        try {
            return new URI(uri);
        } catch (URISyntaxException e) {
            throw new MeteoException(e);
        }
    }
public static URI createUri(String uri) throws MeteoException {
        if (uri == null) {
            throw new MeteoException("URI is null");
        }
        try {
            return new URI(uri);
        } catch (URISyntaxException e) {
            throw new MeteoException(e);
        }
    }
Wrap the construction of URL's to avoid throwing of checked MalformedURLException. Instead MeteoException
is thrown.

@param uri The url string to be used as the spec for the create URL object.
@return URL object created from the given url spec.
@throws no.api.meteo.MeteoException If a URL couldn't be created from the given url spec.