org.axway.grapes.utils.client.GrapesCommunicationException Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of grapes-utils Show documentation
Show all versions of grapes-utils Show documentation
Utility library that can be embedded or run in commandline to handle HTTP requests to Grapes.
package org.axway.grapes.utils.client;
/**
* Grapes Client Exception
*
* Is thrown when a problem of communication with the Grapes server occurs.
*
* @author jdcoffre
*/
public class GrapesCommunicationException extends Exception {
private static final long serialVersionUID = 7318934257349612137L;
private int status;
@Deprecated
public GrapesCommunicationException(final int status) {
super();
this.status = status;
}
public GrapesCommunicationException(final String message, final int status) {
super(message);
this.status = status;
}
public int getHttpStatus(){
return status;
}
}