diff options
Diffstat (limited to 'lib/src/main/java/com/trilead/ssh2/HTTPProxyException.java')
-rw-r--r-- | lib/src/main/java/com/trilead/ssh2/HTTPProxyException.java | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/lib/src/main/java/com/trilead/ssh2/HTTPProxyException.java b/lib/src/main/java/com/trilead/ssh2/HTTPProxyException.java new file mode 100644 index 0000000..3447be2 --- /dev/null +++ b/lib/src/main/java/com/trilead/ssh2/HTTPProxyException.java @@ -0,0 +1,29 @@ +
+package com.trilead.ssh2;
+
+import java.io.IOException;
+
+/**
+ * May be thrown upon connect() if a HTTP proxy is being used.
+ *
+ * @see Connection#connect()
+ * @see Connection#setProxyData(ProxyData)
+ *
+ * @author Christian Plattner, plattner@trilead.com
+ * @version $Id: HTTPProxyException.java,v 1.1 2007/10/15 12:49:56 cplattne Exp $
+ */
+
+public class HTTPProxyException extends IOException
+{
+ private static final long serialVersionUID = 2241537397104426186L;
+
+ public final String httpResponse;
+ public final int httpErrorCode;
+
+ public HTTPProxyException(String httpResponse, int httpErrorCode)
+ {
+ super("HTTP Proxy Error (" + httpErrorCode + " " + httpResponse + ")");
+ this.httpResponse = httpResponse;
+ this.httpErrorCode = httpErrorCode;
+ }
+}
|