Package java.lang

Class NegativeArraySizeException

All Implemented Interfaces:
Serializable

public class NegativeArraySizeException
extends RuntimeException
Thrown when an attempt is made to create an array with a size of less than zero.
See Also:
Serialized Form
  • Constructor Details

    • NegativeArraySizeException

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

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