public class ClassCastException extends RuntimeException
| Constructor and Description |
|---|
ClassCastException()
Constructs a new
ClassCastException that includes the current
stack trace. |
ClassCastException(String detailMessage)
Constructs a new
ClassCastException with the current stack trace
and the specified detail message. |
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringpublic ClassCastException()
ClassCastException that includes the current
stack trace.public ClassCastException(String detailMessage)
ClassCastException with the current stack trace
and the specified detail message.detailMessage - the detail message for this exception.