JavaScriptExecutionException


public class JavaScriptExecutionException extends Exception


Exception thrown when there was an error executing JavaScript via executeJavaScript.

Summary

Constants

static final int

Error code for the web frame that was executing JavaScript was destroyed before execution.

static final int

Error code for a generic/unknown error occurred while executing JavaScript.

Public methods

int

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

Constants

ERROR_FRAME_DESTROYED

public static final int ERROR_FRAME_DESTROYED = 1

Error code for the web frame that was executing JavaScript was destroyed before execution.

ERROR_GENERIC

public static final int ERROR_GENERIC = 0

Error code for a generic/unknown error occurred while executing JavaScript.

Public methods

getErrorType

public int getErrorType()
Returns
int

the type of error that caused this exception. See ERROR_FRAME_DESTROYED and ERROR_GENERIC.