fixed to 1.5 compliance
public class ESTException
extends IOException
{
+ private Throwable cause;
+
private InputStream body;
private int statusCode;
private static final long MAX_ERROR_BODY = 8192;
-
public ESTException(String msg)
{
this(msg, null);
- body = null;
- statusCode = 0;
}
public ESTException(String msg, Throwable cause)
{
- super(msg, cause);
+ super(msg);
+ this.cause = cause;
body = null;
statusCode = 0;
}
-
public ESTException(String message, Throwable cause, int statusCode, InputStream body)
{
- super(message, cause);
+ super(message);
+ this.cause = cause;
this.statusCode = statusCode;
if (body != null)
{
@@ -70,6 +70,11 @@ public ESTException(String message, Throwable cause, int statusCode, InputStream
}
}
+ public Throwable getCause()
+ {
+ return cause;
+ }
+
@Override
public String getMessage()
{
