Mercurial > 510Connectbot
comparison src/ch/ethz/ssh2/HTTPProxyException.java @ 308:42b15aaa7ac7 ganymed
merge
author | Carl Byington <carl@five-ten-sg.com> |
---|---|
date | Wed, 30 Jul 2014 14:21:50 -0700 |
parents | 071eccdff8ea |
children |
comparison
equal
deleted
inserted
replaced
306:90e47d99ea54 | 308:42b15aaa7ac7 |
---|---|
6 | 6 |
7 import java.io.IOException; | 7 import java.io.IOException; |
8 | 8 |
9 /** | 9 /** |
10 * May be thrown upon connect() if a HTTP proxy is being used. | 10 * May be thrown upon connect() if a HTTP proxy is being used. |
11 * | 11 * |
12 * @see Connection#connect() | 12 * @see Connection#connect() |
13 * @see Connection#setProxyData(ProxyData) | 13 * @see Connection#setProxyData(ProxyData) |
14 * | 14 * |
15 * @author Christian Plattner | 15 * @author Christian Plattner |
16 * @version 2.50, 03/15/10 | 16 * @version 2.50, 03/15/10 |
17 */ | 17 */ |
18 | 18 |
19 public class HTTPProxyException extends IOException | 19 public class HTTPProxyException extends IOException { |
20 { | 20 private static final long serialVersionUID = 2241537397104426186L; |
21 private static final long serialVersionUID = 2241537397104426186L; | |
22 | 21 |
23 public final String httpResponse; | 22 public final String httpResponse; |
24 public final int httpErrorCode; | 23 public final int httpErrorCode; |
25 | 24 |
26 public HTTPProxyException(String httpResponse, int httpErrorCode) | 25 public HTTPProxyException(String httpResponse, int httpErrorCode) { |
27 { | 26 super("HTTP Proxy Error (" + httpErrorCode + " " + httpResponse + ")"); |
28 super("HTTP Proxy Error (" + httpErrorCode + " " + httpResponse + ")"); | 27 this.httpResponse = httpResponse; |
29 this.httpResponse = httpResponse; | 28 this.httpErrorCode = httpErrorCode; |
30 this.httpErrorCode = httpErrorCode; | 29 } |
31 } | |
32 } | 30 } |