001 package groovy.lang;
002
003 /**
004 * Use this exception to mark a method implementation as being deprecated.
005 * Use the message to indicate the recommended way of calling the desired functionality.
006 * Make throwing this exception the only line in the method implementation, i.e. unlike the Java
007 * @-deprecated feature there is no relay to the new implementation but an early and deliberate
008 * halt of execution ("fail early").
009 *
010 * This exception is supposed to be used in the SNAPSHOT releases only. Before release, all
011 * references to this exception should be resolved and the according methods removed.
012 *
013 * @author Dierk Koenig
014 */
015 public class DeprecationException extends RuntimeException {
016
017 public DeprecationException(String message) {
018 super(message);
019 }
020
021 public DeprecationException(String message, Throwable cause) {
022 super(message, cause);
023 }
024 }