JavaScriptExecutionException


class JavaScriptExecutionException : Exception


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

Summary

Constants

const Int

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

const Int

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

Public functions

Int

Constants

ERROR_FRAME_DESTROYED

const val ERROR_FRAME_DESTROYED = 1: Int

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

ERROR_GENERIC

const val ERROR_GENERIC = 0: Int

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

Public functions

getErrorType

fun getErrorType(): Int
Returns
Int

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