1 package groovy.lang;
2
3 /***
4 * Use this exception to mark a method implementation as being deprecated.
5 * Use the message to indicate the recommended way of calling the desired functionality.
6 * Make throwing this exception the only line in the method implementation, i.e. unlike the Java
7 * @-deprecated feature there is no relay to the new implementation but an early and deliberate
8 * halt of execution ("fail early").
9 *
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 }