com.sap.cloud.rest.api.client.exceptions.ConnectionException Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of rest-api-client Show documentation
Show all versions of rest-api-client Show documentation
Java HTTP client library for HTTP handling, when building clients for RESTful APIs.
The newest version!
package com.sap.cloud.rest.api.client.exceptions;
import java.io.IOException;
import com.sap.cloud.rest.api.client.model.Request;
/**
* This exception is a wrapper for IO related exceptions.
*
* It contains the request made before the exception occurred.
*
*/
public class ConnectionException extends RestApiClientException {
private static final long serialVersionUID = 1L;
private final transient Request request;
public ConnectionException(String message, IOException cause, Request request) {
super(message, cause);
this.request = request;
}
public Request getRequest() {
return request;
}
}