comparison src/com/trilead/ssh2/HTTPProxyException.java @ 0:0ce5cc452d02

initial version
author Carl Byington <carl@five-ten-sg.com>
date Thu, 22 May 2014 10:41:19 -0700
parents
children
comparison
equal deleted inserted replaced
-1:000000000000 0:0ce5cc452d02
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 }