KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > maverick > multiplex > ChannelOpenException


1 package com.maverick.multiplex;
2
3 public class ChannelOpenException extends Exception JavaDoc {
4
5     int reason;
6     
7     public static final int COMMUNICATION_TIMEOUT = 1;
8     public static final int CHANNEL_REFUSED = 2;
9     public static final int CHANNEL_LIMIT_EXCEEDED = 3;
10     public static final int CONNECT_FAILED = 4;
11     
12     public ChannelOpenException(int reason, String JavaDoc msg) {
13         super(msg);
14         this.reason = reason;
15     }
16     
17     public int getReason() {
18         return reason;
19     }
20 }
21
Popular Tags