01: package ch.ethz.ssh2;
02:
03: import java.io.IOException;
04:
05: /**
06: * May be thrown upon connect() if a HTTP proxy is being used.
07: *
08: * @see Connection#connect()
09: * @see Connection#setProxyData(ProxyData)
10: *
11: * @author Christian Plattner, plattner@inf.ethz.ch
12: * @version $Id: HTTPProxyException.java,v 1.2 2006/08/02 12:05:00 cplattne Exp $
13: */
14:
15: public class HTTPProxyException extends IOException {
16: private static final long serialVersionUID = 2241537397104426186L;
17:
18: public final String httpResponse;
19: public final int httpErrorCode;
20:
21: public HTTPProxyException(String httpResponse, int httpErrorCode) {
22: super ("HTTP Proxy Error (" + httpErrorCode + " " + httpResponse
23: + ")");
24: this.httpResponse = httpResponse;
25: this.httpErrorCode = httpErrorCode;
26: }
27: }
|