com.rollbar.sender.ConnectionFailedException Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of rollbar-sender Show documentation
Show all versions of rollbar-sender Show documentation
An in-process, no-dependency way to send rollbar errors
package com.rollbar.sender;
import java.net.URL;
/**
* Represents a failure to send a payload because of a connection failure.
*/
public class ConnectionFailedException extends Exception {
/**
* Constructor
* @param url the url to which the connection failed
* @param reason the reason why the connection failed in plain english
* @param e the exception, if any, that caused the connection to fail
*/
public ConnectionFailedException(URL url, String reason, Exception e) {
super(String.format("Could not connect to %s because %s failed", url.toString(), reason), e);
}
}