|
Build 1.0_r1(from source) | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
java.lang.ClassCastException
public class ClassCastException
This runtime exception is thrown when a program attempts to cast a an object to a type which it is not compatible with.
| Constructor Summary | |
|---|---|
ClassCastException()
Constructs a new instance of this class with its walkback filled in. |
|
ClassCastException(Class<?> instanceClass,
Class<?> castClass)
Constructs a new instance of this class with its walkback and message filled in. |
|
ClassCastException(String detailMessage)
Constructs a new instance of this class with its walkback and message filled in. |
|
| Method Summary |
|---|
| 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 |
|---|
public ClassCastException()
public ClassCastException(String detailMessage)
detailMessage - String The detail message for the exception.
ClassCastException(Class<?> instanceClass,
Class<?> castClass)
instanceClass - Class The class being cast from.castClass - Class The class being cast to.
|
Build 1.0_r1(from source) | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||