Class AllocationRequestException

All Implemented Interfaces:
Serializable

public class AllocationRequestException extends ImagingRuntimeException
Thrown when an allocation request is too large.
See Also:
  • Field Details

    • serialVersionUID

      private static final long serialVersionUID
      See Also:
    • limit

      private final int limit
    • request

      private final BigInteger request
  • Constructor Details

    • AllocationRequestException

      public AllocationRequestException(int limit, BigInteger request)
      Constructs a new instance.
      Parameters:
      limit - The allocation limit.
      request - The allocation request.
    • AllocationRequestException

      public AllocationRequestException(int limit, BigInteger request, Throwable throwable)
      Constructs a new instance.
      Parameters:
      limit - The allocation limit.
      request - The allocation request.
      throwable - the cause (which is saved for later retrieval by the Throwable.getCause() method). (A null value is permitted, and indicates that the cause is nonexistent or unknown.)
    • AllocationRequestException

      public AllocationRequestException(int limit, int request)
      Constructs a new instance.
      Parameters:
      limit - The allocation limit.
      request - The allocation request.
    • AllocationRequestException

      public AllocationRequestException(int limit, long request, Throwable throwable)
      Constructs a new instance.
      Parameters:
      limit - The allocation limit.
      request - The allocation request.
      throwable - the cause (which is saved for later retrieval by the Throwable.getCause() method). (A null value is permitted, and indicates that the cause is nonexistent or unknown.)
  • Method Details

    • format

      private static String format(int limit, BigInteger request)
    • getLimit

      public int getLimit()
      Gets the allocation limit.
      Returns:
      the allocation limit.
    • getRequest

      public BigInteger getRequest()
      Gets the allocation request.
      Returns:
      the allocation request.