Package net.algart.arrays
Class TooLargeArrayException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
net.algart.arrays.TooLargeArrayException
- All Implemented Interfaces:
Serializable
Unchecked exception thrown if the current or desired array length is extremely large.
It is thrown by methods, creating new arrays or resizing existing arrays,
if the desired array length is too large (regardless of the amount of memory,
for example, greater than Long.MAX_VALUE),
or by methods trying to convert the array into a Java array (as Arrays.toJavaArray(Array)
),
if the array is too large for storing its content in a form of Java array
(Java arrays can contain, as a maximum, Integer.MAX_VALUE (231-1) elements).
- Author:
- Daniel Alievsky
- See Also:
-
Constructor Summary
ConstructorDescriptionConstructs an instance of this class.TooLargeArrayException
(String message) Constructs an instance of this class with 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
-
TooLargeArrayException
public TooLargeArrayException()Constructs an instance of this class. -
TooLargeArrayException
Constructs an instance of this class with the specified detail message.- Parameters:
message
- the detail message.
-