com.cloudesire.tisana4j.exceptions.RestException Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of tisana4j Show documentation
Show all versions of tisana4j Show documentation
Yet another (but missing) simple RESTful client library for Java.
package com.cloudesire.tisana4j.exceptions;
public class RestException extends Exception
{
private static final long serialVersionUID = 8156589269399467370L;
private final Integer responseCode;
public RestException( Integer responseCode, String msgError )
{
super( msgError );
this.responseCode = responseCode;
}
public RestException( Exception e )
{
super( e );
this.responseCode = null;
}
public int getResponseCode()
{
return responseCode;
}
}