Class SizeException

All Implemented Interfaces:
Serializable

public class SizeException extends UncheckedDeephavenException

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 Details

    • SizeException

      public SizeException(@Nullable @Nullable String messagePrefix, long inputSize, long maximumSize)
      Construct an exception, with a message appropriate for the given arguments.
      Parameters:
      messagePrefix - An optional prefix for the message
      inputSize - The input size for the message
      maximumSize - The maximum size for the message
    • SizeException

      public SizeException(@Nullable @Nullable String messagePrefix, long inputSize)
      Construct an exception, with a message appropriate for the given arguments. Maximum size is assumed to be Integer.MAX_VALUE.
      Parameters:
      messagePrefix - An optional prefix for the message
      inputSize - 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 be Integer.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