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