com.cx.restclient.exception.CxHTTPClientException Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of cx-client-common Show documentation
Show all versions of cx-client-common Show documentation
Web client for interaction with Checkmarx SAST, SCA and OSA products
package com.cx.restclient.exception;
/**
* Created by Galn on 05/02/2018.
*/
public class CxHTTPClientException extends CxClientException {
private int statusCode = 0;
private String responseBody;
public CxHTTPClientException(int statusCode, String message, String responseBody) {
super(message);
this.statusCode = statusCode;
this.responseBody = responseBody;
}
public CxHTTPClientException() {
super();
}
public CxHTTPClientException(String message) {
super(message);
}
public CxHTTPClientException(String message, Throwable cause) {
super(message, cause);
}
public CxHTTPClientException(Throwable cause) {
super(cause);
}
public int getStatusCode() {
return this.statusCode;
}
public String getResponseBody() {
return responseBody;
}
}