Class AllocationRequestException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.apache.commons.imaging.ImagingRuntimeException
org.apache.commons.imaging.common.AllocationRequestException
- All Implemented Interfaces:
- Serializable
Thrown when an allocation request is too large.
- See Also:
- 
Constructor SummaryConstructorsConstructorDescriptionAllocationRequestException(int limit, int request) Constructs a new instance.AllocationRequestException(int limit, long request, Throwable throwable) Constructs a new instance.AllocationRequestException(int limit, BigInteger request) Constructs a new instance.AllocationRequestException(int limit, BigInteger request, Throwable throwable) Constructs a new instance.
- 
Method SummaryModifier and TypeMethodDescriptionintgetLimit()Gets the allocation limit.Gets the allocation request.Methods inherited from class java.lang.ThrowableaddSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
- 
Constructor Details- 
AllocationRequestExceptionConstructs a new instance.- Parameters:
- limit- The allocation limit.
- request- The allocation request.
 
- 
AllocationRequestExceptionConstructs 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- nullvalue is permitted, and indicates that the cause is nonexistent or unknown.)
 
- 
AllocationRequestExceptionConstructs a new instance.- Parameters:
- limit- The allocation limit.
- request- The allocation request.
 
- 
AllocationRequestExceptionConstructs 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- nullvalue is permitted, and indicates that the cause is nonexistent or unknown.)
 
 
- 
- 
Method Details- 
getLimitGets the allocation limit.- Returns:
- the allocation limit.
 
- 
getRequestGets the allocation request.- Returns:
- the allocation request.
 
 
-