Class SandboxLimitExceededError
java.lang.Object
java.lang.Throwable
java.lang.Error
org.codehaus.commons.compiler.sandbox.SandboxLimitExceededError
- All Implemented Interfaces:
Serializable
Thrown inside sandboxed code by
Guard when a limit is exceeded. It is an
Error, so that catch (Exception e) does not catch it. Code that catches it anyway does not gain
anything: the guard stays tripped and throws again on the next tick, and the SandboxExecutor reports the
exceeded limit as a SandboxLimitExceededException in any case.- 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
-