| |
|
| java.lang.Object java.lang.Throwable java.lang.Exception java.lang.RuntimeException java.lang.ClassCastException
ClassCastException | public class ClassCastException extends RuntimeException (Code) | | 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 | |
public | ClassCastException() Constructs a new instance of this class with its walkback filled in. | public | ClassCastException(String detailMessage) Constructs a new instance of this class with its walkback and message
filled in. | | ClassCastException(Class> instanceClass, Class> castClass) Constructs a new instance of this class with its walkback and message
filled in. |
ClassCastException | public ClassCastException()(Code) | | Constructs a new instance of this class with its walkback filled in.
|
ClassCastException | public ClassCastException(String detailMessage)(Code) | | Constructs a new instance of this class with its walkback and message
filled in.
Parameters: detailMessage - String The detail message for the exception. |
ClassCastException | ClassCastException(Class> instanceClass, Class> castClass)(Code) | | Constructs a new instance of this class with its walkback and message
filled in.
Parameters: instanceClass - Class The class being cast from. Parameters: castClass - Class The class being cast to. |
|
|
|