Class SandboxLimitExceededException
java.lang.Object
java.lang.Throwable
java.lang.Exception
org.codehaus.commons.compiler.sandbox.SandboxLimitExceededException
- All Implemented Interfaces:
Serializable
Thrown by
SandboxExecutor.call(java.util.concurrent.Callable) when an execution exceeded one of its SandboxLimits. The result of such an execution (if any) is discarded.- See Also:
-
Method Summary
Methods inherited from class Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Method Details
-
getLimit
- Returns:
- The limit that was exceeded
-
isThreadTerminated
public boolean isThreadTerminated()- Returns:
- Whether the thread that executed the code has terminated;
falsemeans that the code did not react to the timeout (e.g. because it was not compiled by JANINO, or because it is stuck inside a JDK method) and still runs
-