comparison src/ch/ethz/ssh2/transport/DisconnectException.java @ 273:91a31873c42a ganymed

start conversion from trilead to ganymed
author Carl Byington <carl@five-ten-sg.com>
date Fri, 18 Jul 2014 11:21:46 -0700
parents
children
comparison
equal deleted inserted replaced
272:ce2f4e397703 273:91a31873c42a
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 }