Package java.lang
Class NegativeArraySizeException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- java.lang.NegativeArraySizeException
-
- All Implemented Interfaces:
Serializable
,Modified
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 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
getMessage, 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.
-
-