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: /**
07: * Thrown when someone tries to call an unimplemented feature.
08: */
09: public class TCNotSupportedMethodException extends TCRuntimeException {
10: public final static String CLASS_SLASH = "com/tc/exception/TCNotSupportedMethodException";
11:
12: private static final ExceptionWrapper wrapper = new ExceptionWrapperImpl();
13:
14: private static final String 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 message) {
22: super (wrapper.wrap(message));
23: }
24:
25: public TCNotSupportedMethodException(Throwable cause) {
26: this (PRETTY_TEXT, cause);
27: }
28:
29: public TCNotSupportedMethodException(String message, Throwable cause) {
30: super(wrapper.wrap(message), cause);
31: }
32:
33: }
|