Code example for URISyntaxException

Methods: getMessage

0
            post = new Http().post(url, headers, paramsAsBody);
            Log.v("pivot13", "response for " + url + " was \n" + post.getResponseBody());
        } catch (IOException e) {
            toast("Exception: " + e.getMessage());
        } catch (URISyntaxException e) {
            toast("Exception: " + e.getMessage());
        } 
        return post;
    } 
 
    private void toast(String text) {
        Toast.makeText(HomeActivity.this, text, Toast.LENGTH_LONG).show();
    } 
}