Package io.deephaven.util.datastructures
Class SizeException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
io.deephaven.UncheckedDeephavenException
io.deephaven.util.datastructures.SizeException
- All Implemented Interfaces:
Serializable
Unchecked exception thrown when operations are invoked (directly or indirectly) that cannot be completed correctly
due to size constraints on the underlying data structures. Most commonly this occurs when a
LongSizedDataStructure
cannot perform some operations if the input size exceeds 2147483647.
- See Also:
-
Constructor Summary
ConstructorDescriptionSizeException
(long inputSize) Construct an exception, with a message appropriate for the given arguments.SizeException
(@Nullable String messagePrefix, long inputSize) Construct an exception, with a message appropriate for the given arguments.SizeException
(@Nullable String messagePrefix, long inputSize, long maximumSize) Construct an exception, with a message appropriate for the given arguments. -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
SizeException
Construct an exception, with a message appropriate for the given arguments.- Parameters:
messagePrefix
- An optional prefix for the messageinputSize
- The input size for the messagemaximumSize
- The maximum size for the message
-
SizeException
Construct an exception, with a message appropriate for the given arguments. Maximum size is assumed to beInteger.MAX_VALUE
.- Parameters:
messagePrefix
- An optional prefix for the messageinputSize
- The input size for the message
-
SizeException
public SizeException(long inputSize) Construct an exception, with a message appropriate for the given arguments. Maximum size is assumed to beInteger.MAX_VALUE
, and no prefix is included.- Parameters:
inputSize
- The input size for the message
-
-
Method Details
-
getMaximumSize
public long getMaximumSize()Get the maximum size that was exceeded.- Returns:
- The maximum size
-