java.lang
Class ArrayStoreException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- java.lang.ArrayStoreException
-
public class ArrayStoreException extends RuntimeException
Thrown when a program attempts to store an element of an incompatible type in an array.
-
-
Constructor Summary
Constructors Constructor and Description ArrayStoreException()
Constructs a newArrayStoreException
that includes the current stack trace.ArrayStoreException(String detailMessage)
Constructs a newArrayStoreException
with the current stack trace and the specified detail message.
-
Method Summary
-
Methods inherited from class java.lang.Throwable
fillInStackTrace, getMessage, getStackTrace, printStackTrace, printStackTrace, toString
-
-
-
-
Constructor Detail
-
ArrayStoreException
public ArrayStoreException()
Constructs a newArrayStoreException
that includes the current stack trace.
-
ArrayStoreException
public ArrayStoreException(String detailMessage)
Constructs a newArrayStoreException
with the current stack trace and the specified detail message.- Parameters:
detailMessage
- the detail message for this exception.
-
-