java.lang
Class ClassCastException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
java.lang.ClassCastException
- All Implemented Interfaces:
- Serializable
public class ClassCastException
- extends RuntimeException
ClassCastException is a runtime exception thrown when an attempt is
made to cast a reference to a type the referenced instance is not
an instance of.
- Since:
- 1.0
- See Also:
- Serialized Form
Methods inherited from class java.lang.Throwable |
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
ClassCastException
public ClassCastException()
- Constructor for a ClassCastException with no detail message.
ClassCastException
public ClassCastException(String s)
- Constructor for a ClassCastException with given detail message.
ensures
(s != null IMPLIES getMessage().equals(s));
- Parameters:
s
- the detail message.
aicas GmbH, Karlsruhe, Germany —www.aicas.com
Copyright © 2001-2015 aicas GmbH. All Rights Reserved.