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 TCLockUpgradeNotSupportedError extends TCError {
10: public final static String CLASS_SLASH = "com/tc/exception/TCLockUpgradeNotSupportedError";
11:
12: private static final ExceptionWrapper wrapper = new ExceptionWrapperImpl();
13:
14: private static final String PRETTY_TEXT = "Lock upgrade is not supported. The READ lock needs to be unlocked before a WRITE lock can be requested. \n";
15:
16: public TCLockUpgradeNotSupportedError() {
17: this (PRETTY_TEXT);
18: }
19:
20: public TCLockUpgradeNotSupportedError(String message) {
21: super (wrapper.wrap(message));
22: }
23:
24: public TCLockUpgradeNotSupportedError(Throwable cause) {
25: this (PRETTY_TEXT, cause);
26: }
27:
28: public TCLockUpgradeNotSupportedError(String message,
29: Throwable cause) {
30: super(wrapper.wrap(message), cause);
31: }
32:
33: }
|