Code example for URISyntaxException

Methods: getMessage

0
        List<URI> requestStrings = new ArrayList<URI>();
        try { 
            URI uri = new URI("http", xapiUrl, "/api/xapi", requestStringAmenity, null);
            requestStrings.add(uri);
        } catch (URISyntaxException e) {
            Log.d(ApiConnector.class.getSimpleName(), e.getMessage());
        } 
 
        if (!requestStringAmenity.contentEquals(requestStringShop)) {
            try { 
                URI uri = new URI("http", xapiUrl, "/api/xapi", requestStringShop, null);
                requestStrings.add(uri);
            } catch (URISyntaxException e) {
                Log.d(ApiConnector.class.getSimpleName(), e.getMessage());
            } 
        } 
         
        return requestStrings;
    } 
     
Stop searching for code, let great code find you!  Add Codota to your java IDE