01: package groovy.lang;
02:
03: /**
04: * Use this exception to mark a method implementation as being deprecated.
05: * Use the message to indicate the recommended way of calling the desired functionality.
06: * Make throwing this exception the only line in the method implementation, i.e. unlike the Java
07: * @-deprecated feature there is no relay to the new implementation but an early and deliberate
08: * halt of execution ("fail early").
09: *
10: * This exception is supposed to be used in the SNAPSHOT releases only. Before release, all
11: * references to this exception should be resolved and the according methods removed.
12: *
13: * @author Dierk Koenig
14: */
15: public class DeprecationException extends RuntimeException {
16:
17: public DeprecationException(String message) {
18: super (message);
19: }
20:
21: public DeprecationException(String message, Throwable cause) {
22: super(message, cause);
23: }
24: }
|