KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > tc > exception > TCClassNotAdaptableException


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.exception;
5
6 public class TCClassNotAdaptableException extends TCRuntimeException {
7
8   public TCClassNotAdaptableException() {
9     super();
10   }
11
12   public TCClassNotAdaptableException(String JavaDoc message) {
13     super(wrap(message));
14   }
15
16   private static String JavaDoc wrap(String JavaDoc message) {
17     return "\n**************************************************************************************\n" + message
18            + "\n**************************************************************************************\n";
19   }
20
21   public TCClassNotAdaptableException(Throwable JavaDoc cause) {
22     super(cause);
23   }
24
25   public TCClassNotAdaptableException(String JavaDoc message, Throwable JavaDoc cause) {
26     super(wrap(message), cause);
27   }
28
29 }
30
Popular Tags