Code example for URISyntaxException

Methods: getMessage

0
      URI result = uriSsc.indexOf(':') >=0 ? new URI(getScheme(), uriSsc, null) : new URI(uriSsc);
      return result;
    } 
    catch (URISyntaxException e)
    { 
      throw new RuntimeException("unable to generate legacy subscription URI: " + e.getMessage(), e);
    } 
  } 
 
}