[Java] Class DeprecationException
- groovy.lang.DeprecationException
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 JavaDoc deprecated feature there is no relay to the new implementation but an early and deliberate halt of execution ("fail early"). This exception is supposed to be used in the SNAPSHOT releases only. Before release, all references to this exception should be resolved and the according methods removed.
Constructor Summary
Constructor and description |
---|
DeprecationException
(String message) |
DeprecationException
(String message, Throwable cause) |
Inherited Methods Summary
Methods inherited from class | Name |
---|---|
class RuntimeException | printStackTrace, printStackTrace, printStackTrace, fillInStackTrace, getCause, initCause, toString, addSuppressed, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, setStackTrace, wait, wait, wait, equals, hashCode, getClass, notify, notifyAll |
Constructor Detail
public DeprecationException(String message)
public DeprecationException(String message, Throwable cause)
© 2003-2020 The Apache Software Foundation
Licensed under the Apache license.
https://docs.groovy-lang.org/2.5.14/html/gapi/groovy/lang/DeprecationException.html