All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.sap.cloud.rest.api.client.exceptions.ConnectionException Maven / Gradle / Ivy

Go to download

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;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy