comparison app/src/main/java/ch/ethz/ssh2/HTTPProxyException.java @ 438:d29cce60f393

migrate from Eclipse to Android Studio
author Carl Byington <carl@five-ten-sg.com>
date Thu, 03 Dec 2015 11:23:55 -0800
parents src/ch/ethz/ssh2/HTTPProxyException.java@071eccdff8ea
children
comparison
equal deleted inserted replaced
437:208b31032318 438:d29cce60f393
1 /*
2 * Copyright (c) 2006-2011 Christian Plattner. All rights reserved.
3 * Please refer to the LICENSE.txt for licensing details.
4 */
5 package ch.ethz.ssh2;
6
7 import java.io.IOException;
8
9 /**
10 * May be thrown upon connect() if a HTTP proxy is being used.
11 *
12 * @see Connection#connect()
13 * @see Connection#setProxyData(ProxyData)
14 *
15 * @author Christian Plattner
16 * @version 2.50, 03/15/10
17 */
18
19 public class HTTPProxyException extends IOException {
20 private static final long serialVersionUID = 2241537397104426186L;
21
22 public final String httpResponse;
23 public final int httpErrorCode;
24
25 public HTTPProxyException(String httpResponse, int httpErrorCode) {
26 super("HTTP Proxy Error (" + httpErrorCode + " " + httpResponse + ")");
27 this.httpResponse = httpResponse;
28 this.httpErrorCode = httpErrorCode;
29 }
30 }