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 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 and description |
|---|
DeprecationException(String message)Creates a deprecation exception with the supplied message. |
DeprecationException(String message, Throwable cause)Creates a deprecation exception with the supplied message and cause. |
| Methods inherited from class | Name |
|---|---|
class RuntimeException |
addSuppressed, equals, fillInStackTrace, getCause, getClass, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, hashCode, initCause, notify, notifyAll, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString, wait, wait, wait |
Creates a deprecation exception with the supplied message.
message - the detail messageCopyright © 2003-2026 The Apache Software Foundation. All rights reserved.