Package java.lang
Class NegativeArraySizeException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
java.lang.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 Summary
Constructors Constructor Description NegativeArraySizeException()Constructs a newNegativeArraySizeExceptionthat includes the current stack trace.NegativeArraySizeException(String detailMessage)Constructs a newNegativeArraySizeExceptionwith the current stack trace and the specified detail message. -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
NegativeArraySizeException
public NegativeArraySizeException()Constructs a newNegativeArraySizeExceptionthat includes the current stack trace. -
NegativeArraySizeException
Constructs a newNegativeArraySizeExceptionwith the current stack trace and the specified detail message.- Parameters:
detailMessage- the detail message for this exception.
-