package com.rollbar.http;

import java.io.IOException;

public interface Sender {
    RollbarResponse Send(String jsonPayload) throws IOException, ConnectionFailedException;
}

package com.rollbar.http;

import java.io.UnsupportedEncodingException;

/**
 * Senders can send JSON string payloads to Rollbar.
 */
public interface Sender {
    /**
     * Send the json payload (already serialized as a String) to Rollbar
     * @param jsonPayload the payload to send
     * @return a {@link RollbarResponse} indicating what happened.
     * @throws ConnectionFailedException if the connection failed before receiving a response from Rollbar.
     * @throws UnsupportedEncodingException if the json couldn't be encoded as UTF8.
     */
    RollbarResponse Send(String jsonPayload) throws ConnectionFailedException, UnsupportedEncodingException;
}

Update the errors thrown, and java doc Sender