KickJava   Java API By Example, From Geeks To Geeks.

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


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 /**
7  * Thrown when someone tries to call an unimplemented feature.
8  */

9 public class TCNotSupportedMethodException extends TCRuntimeException {
10   public final static String JavaDoc CLASS_SLASH = "com/tc/exception/TCNotSupportedMethodException";
11   
12   private static final ExceptionWrapper wrapper = new ExceptionWrapperImpl();
13
14   private static final String JavaDoc PRETTY_TEXT = "You have attempted to invoke an unsupported API in this Terracotta product. \n"
15                                             + "Please consult the product documentation, or email support@terracottatech.com for assistance.";
16
17   public TCNotSupportedMethodException() {
18     this(PRETTY_TEXT);
19   }
20
21   public TCNotSupportedMethodException(String JavaDoc message) {
22     super(wrapper.wrap(message));
23   }
24
25   public TCNotSupportedMethodException(Throwable JavaDoc cause) {
26     this(PRETTY_TEXT, cause);
27   }
28
29   public TCNotSupportedMethodException(String JavaDoc message, Throwable JavaDoc cause) {
30     super(wrapper.wrap(message), cause);
31   }
32
33 }
Popular Tags