comparison src/ch/ethz/ssh2/transport/DisconnectException.java @ 342:175c7d68f3c4

merge ganymed into mainline
author Carl Byington <carl@five-ten-sg.com>
date Thu, 31 Jul 2014 16:33:38 -0700
parents 91a31873c42a
children
comparison
equal deleted inserted replaced
272:ce2f4e397703 342:175c7d68f3c4
1 package ch.ethz.ssh2.transport;
2
3 import java.io.IOException;
4
5 import ch.ethz.ssh2.packets.PacketDisconnect;
6
7 /**
8 * @version $Id: DisconnectException.java 160 2014-05-01 14:30:26Z dkocher@sudo.ch $
9 */
10 public class DisconnectException extends IOException {
11
12 private PacketDisconnect.Reason reason;
13
14 public DisconnectException(final PacketDisconnect.Reason reason, final String message) {
15 super(message);
16 this.reason = reason;
17 }
18
19 public PacketDisconnect.Reason getReason() {
20 return reason;
21 }
22 }