Class SandboxLimitExceededException

java.lang.Object
java.lang.Throwable
java.lang.Exception
org.codehaus.commons.compiler.sandbox.SandboxLimitExceededException
All Implemented Interfaces:
Serializable

public class SandboxLimitExceededException extends Exception
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 Details

    • getLimit

      public SandboxLimits.Limit getLimit()
      Returns:
      The limit that was exceeded
    • isThreadTerminated

      public boolean isThreadTerminated()
      Returns:
      Whether the thread that executed the code has terminated; false means 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