Package java.lang

Class 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 Details

    • ArrayStoreException

      public ArrayStoreException()
      Constructs a new ArrayStoreException that includes the current stack trace.
    • ArrayStoreException

      public ArrayStoreException​(String detailMessage)
      Constructs a new ArrayStoreException with the current stack trace and the specified detail message.
      Parameters:
      detailMessage - the detail message for this exception.