Intel

Developer Zone

NegativeArraySizeException

java.lang

Class NegativeArraySizeException



  • public class NegativeArraySizeException
    extends RuntimeException
    Thrown when an attempt is made to create an array with a size of less than zero.
    • Constructor Detail

      • 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.