groovy.lang
Class DeprecationException

java.lang.Object
  extended byjava.lang.Throwable
      extended byjava.lang.Exception
          extended byjava.lang.RuntimeException
              extended bygroovy.lang.DeprecationException
All Implemented Interfaces:
Serializable

public class DeprecationException
extends RuntimeException

Use this exception to mark a method implementation as being deprecated. Use the message to indicate the recommended way of calling the desired functionality. Make throwing this exception the only line in the method implementation, i.e. unlike the Java

Author:
Dierk Koenig
See Also:
Serialized Form

Constructor Summary
DeprecationException(String message)
           
DeprecationException(String message, Throwable cause)
           
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DeprecationException

public DeprecationException(String message)

DeprecationException

public DeprecationException(String message,
                            Throwable cause)


Copyright © 2003-2007 The Codehaus. All Rights Reserved.