01: /*
02: * All content copyright (c) 2003-2006 Terracotta, Inc., except as may otherwise be noted in a separate copyright notice. All rights reserved.
03: */
04: package com.tc.net.protocol.transport;
05:
06: public class InvalidConnectionIDException extends Exception {
07:
08: public InvalidConnectionIDException(String connectionID,
09: String reason) {
10: super (message(connectionID, reason));
11: }
12:
13: public InvalidConnectionIDException(String connectionID,
14: String reason, Exception e) {
15: super (message(connectionID, reason), e);
16: }
17:
18: private static String message(String id, String reason) {
19: return "ID: " + id + ", reason: " + reason;
20: }
21:
22: }
|