2 package com.trilead.ssh2;
\r
4 import java.io.IOException;
\r
7 * May be thrown upon connect() if a HTTP proxy is being used.
\r
9 * @see Connection#connect()
\r
10 * @see Connection#setProxyData(ProxyData)
\r
12 * @author Christian Plattner, plattner@trilead.com
\r
13 * @version $Id: HTTPProxyException.java,v 1.1 2007/10/15 12:49:56 cplattne Exp $
\r
16 public class HTTPProxyException extends IOException
\r
18 private static final long serialVersionUID = 2241537397104426186L;
\r
20 public final String httpResponse;
\r
21 public final int httpErrorCode;
\r
23 public HTTPProxyException(String httpResponse, int httpErrorCode)
\r
25 super("HTTP Proxy Error (" + httpErrorCode + " " + httpResponse + ")");
\r
26 this.httpResponse = httpResponse;
\r
27 this.httpErrorCode = httpErrorCode;
\r