public static void checkUri ( String uri , String message , Object ... args ) { try { new URI ( uri ) ; } catch ( URISyntaxException e ) { throw new IllegalArgumentException ( String . format ( message , args ) , e ) ; } }
Validates that an argument is a valid URI .