Package com.io7m.jpuddle.core
Class JPPoolHardLimitExceededException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
com.io7m.jpuddle.core.JPPoolException
com.io7m.jpuddle.core.JPPoolHardLimitExceededException
- All Implemented Interfaces:
Serializable
An exception raised by attempting to create a new object in a pool when that
object would exceed the pool's hard size limit.
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionlonggetLimit()longgetSize()newException(long limit, long size) Construct a new exception.Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Method Details
-
newException
Construct a new exception.- Parameters:
limit- The hard limitsize- The size that exceeded the limit- Returns:
- A new exception
-
getLimit
public long getLimit()- Returns:
- The pool's hard limit
-
getSize
public long getSize()- Returns:
- The size that exceeded the limit
-