1 4 package com.tc.exception; 5 6 9 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 } | Popular Tags |