public class NegativeArraySizeException extends RuntimeException
int i = -1; int[] array = new int[i];
| Constructor and Description |
|---|
NegativeArraySizeException()
Create an exception without a message.
|
NegativeArraySizeException(String s)
Create an exception with a message.
|
NegativeArraySizeException(String s,
Throwable cause)
Create an exception with a message.
|
NegativeArraySizeException(Throwable cause)
Create an exception without a message.
|
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringpublic NegativeArraySizeException()
public NegativeArraySizeException(String s)
s - the messagepublic NegativeArraySizeException(Throwable cause)