Package java.lang
Class ArrayStoreException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
java.lang.ArrayStoreException
- All Implemented Interfaces:
Serializable
public class ArrayStoreException extends RuntimeException
Thrown when a program attempts to store an element of an incompatible type in
an array.
- See Also:
- Serialized Form
-
Constructor Summary
Constructors Constructor Description ArrayStoreException()Constructs a newArrayStoreExceptionthat includes the current stack trace.ArrayStoreException(String detailMessage)Constructs a newArrayStoreExceptionwith the current stack trace and the specified detail message. -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
ArrayStoreException
public ArrayStoreException()Constructs a newArrayStoreExceptionthat includes the current stack trace. -
ArrayStoreException
Constructs a newArrayStoreExceptionwith the current stack trace and the specified detail message.- Parameters:
detailMessage- the detail message for this exception.
-