273
|
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 }
|