KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > tc > net > protocol > transport > InvalidConnectionIDException


1 /*
2  * All content copyright (c) 2003-2006 Terracotta, Inc., except as may otherwise be noted in a separate copyright notice. All rights reserved.
3  */

4 package com.tc.net.protocol.transport;
5
6 public class InvalidConnectionIDException extends Exception JavaDoc {
7
8   public InvalidConnectionIDException(String JavaDoc connectionID, String JavaDoc reason) {
9     super(message(connectionID, reason));
10   }
11
12   public InvalidConnectionIDException(String JavaDoc connectionID, String JavaDoc reason, Exception JavaDoc e) {
13     super(message(connectionID, reason), e);
14   }
15
16   private static String JavaDoc message(String JavaDoc id, String JavaDoc reason) {
17     return "ID: " + id + ", reason: " + reason;
18   }
19
20 }
21
Popular Tags