Stay organized with collections Save and categorize content based on your preferences.

IsolateTerminatedException

public final class IsolateTerminatedException extends JavaScriptException


Exception thrown when evaluation is terminated due to the JavaScriptIsolate being closed or crashing. Calling close will cause this exception to be thrown for all previously requested but pending evaluations.

If the individual isolate has crashed, for example, due to exceeding a memory limit, this exception will also be thrown for all pending and future evaluations (until close is called).

Note that if the sandbox as a whole has crashed or been closed, SandboxDeadException will be thrown instead.

Note that this exception will not be thrown if the isolate has been explicitly closed before a call to evaluateJavaScriptAsync, which will instead immediately throw an IllegalStateException (and not asynchronously via a future). This applies even if the isolate was closed following a crash.

Summary

Public constructors

Inherited methods

From java.lang.Throwable
synchronized final void
synchronized Throwable
synchronized Throwable
String
String
StackTraceElement[]
synchronized final Throwable[]
synchronized Throwable
void
void
setStackTrace(StackTraceElement[] stackTrace)
String

Public constructors

IsolateTerminatedException

public IsolateTerminatedException()