Code example for URISyntaxException

Methods: getMessage

        try { 
            // Make the request 
            LOG.debug("Make request with url:{}", params);
            eventDispatcher.dispatch(protocol.baseUrl(), params, device.getUserAgent(), device.getRemoteAddress());
        } catch (URISyntaxException e) {
            LOG.error("Not possible to create URI object from URL with reason:{}", e.getMessage());
            throw new IllegalArgumentException(e);
    // Setters and getters 
    public TrackingInfoDispatcher getEventDispatcher() { 
        return eventDispatcher;
    public void setEventDispatcher(TrackingInfoDispatcher eventDispatcher) {
        this.eventDispatcher = eventDispatcher;
Connect your IDE to all the code out there  Get Codota for Java