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