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 ImplementMe extends TCRuntimeException {
10:
11: private static final String PRETTY_TEXT = "You've attempted to use an unsupported feature in this Terracotta product. Please consult "
12: + "the product documentation, or email support@terracottatech.com for assistance.";
13:
14: /**
15: * Construct new with default text
16: */
17: public ImplementMe() {
18: this (PRETTY_TEXT);
19: }
20:
21: /**
22: * Construct with specified text
23: * @param message The message
24: */
25: public ImplementMe(String message) {
26: super (message);
27: }
28:
29: /**
30: * Construct with exception and use default text
31: * @param cause The cause
32: */
33: public ImplementMe(Throwable cause) {
34: super (PRETTY_TEXT, cause);
35: }
36:
37: /**
38: * Construct with specified message and cause
39: * @param message Specified message
40: * @param cause Cause
41: */
42: public ImplementMe(String message, Throwable cause) {
43: super(message, cause);
44: }
45:
46: }
|