public class JavaScriptException extends Exception

Known direct subclasses
DataInputException

Indicates that streaming JavaScript code into the JS evaluation environment has failed.

EvaluationFailedException

Indicates that an evaluation failed due to a syntax error or exception produced by the script.

EvaluationResultSizeLimitExceededException

Indicates that a JavaScriptIsolate's evaluation failed due to it returning an oversized result.

IsolateTerminatedException

Exception produced when evaluation is terminated due to the JavaScriptIsolate being closed or due to some crash.

Known indirect subclasses
MemoryLimitExceededException

Indicates that a JavaScriptIsolate's evaluation failed due to the isolate exceeding its heap size limit.

SandboxDeadException

Exception thrown when evaluation is terminated due the JavaScriptSandbox being dead.


Super class for all asynchronous exceptions produced by evaluateJavaScriptAsync.

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

JavaScriptException

Added in 1.0.0-beta01
public JavaScriptException()

JavaScriptException

Added in 1.0.0-beta01
public JavaScriptException(@NonNull String error)