java.lang
Class NegativeArraySizeException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- java.lang.NegativeArraySizeException
-
public class NegativeArraySizeException extends RuntimeException
Thrown when an attempt is made to create an array with a size of less than zero.
-
-
Constructor Summary
Constructors Constructor and Description NegativeArraySizeException()
Constructs a newNegativeArraySizeException
that includes the current stack trace.NegativeArraySizeException(String detailMessage)
Constructs a newNegativeArraySizeException
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
-
NegativeArraySizeException
public NegativeArraySizeException()
Constructs a newNegativeArraySizeException
that includes the current stack trace.
-
NegativeArraySizeException
public NegativeArraySizeException(String detailMessage)
Constructs a newNegativeArraySizeException
with the current stack trace and the specified detail message.- Parameters:
detailMessage
- the detail message for this exception.
-
-