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:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final intprivate final BigIntegerprivate static final long -
Constructor Summary
ConstructorsConstructorDescriptionAllocationRequestException(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 Summary
Modifier and TypeMethodDescriptionprivate static Stringformat(int limit, BigInteger request) intgetLimit()Gets the allocation limit.Gets the allocation request.Methods inherited from class Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Field Details
-
serialVersionUID
private static final long serialVersionUID- See Also:
-
limit
private final int limit -
request
-
-
Constructor Details
-
AllocationRequestException
Constructs a new instance.- Parameters:
limit- The allocation limit.request- The allocation request.
-
AllocationRequestException
Constructs a new instance.- Parameters:
limit- The allocation limit.request- The allocation request.throwable- the cause (which is saved for later retrieval by theThrowable.getCause()method). (Anullvalue 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
Constructs a new instance.- Parameters:
limit- The allocation limit.request- The allocation request.throwable- the cause (which is saved for later retrieval by theThrowable.getCause()method). (Anullvalue is permitted, and indicates that the cause is nonexistent or unknown.)
-
-
Method Details
-
format
-
getLimit
public int getLimit()Gets the allocation limit.- Returns:
- the allocation limit.
-
getRequest
-