Exception

class Exception(pointer: <Error class: unknown class><<Error class: unknown class>>)

JSCException represents a JavaScript exception.

Skipped during bindings generation

  • constructor new_printf: Varargs parameter is not supported

  • parameter args: va_list

  • constructor new_with_name_printf: Varargs parameter is not supported

  • parameter args: va_list

Constructors

Link copied to clipboard
constructor(context: Context, message: String)

Create a new #JSCException in @context with @message.

constructor(context: Context, name: String, message: String)

Create a new #JSCException in @context with @name and @message.

constructor(pointer: <Error class: unknown class><<Error class: unknown class>>)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
val javascriptcoreExceptionPointer: <Error class: unknown class><<Error class: unknown class>>

Functions

Link copied to clipboard

Get a string with the exception backtrace.

Link copied to clipboard
fun getColumnNumber(): <Error class: unknown class>

Get the column number at which @exception happened.

Link copied to clipboard
fun getLineNumber(): <Error class: unknown class>

Get the line number at which @exception happened.

Link copied to clipboard

Get the error message of @exception.

Link copied to clipboard

Get the error name of @exception

Link copied to clipboard

Get the source URI of @exception.

Link copied to clipboard
fun report(): String

Return a report message of @exception, containing all the possible details such us source URI, line, column and backtrace, and formatted to be printed.

Link copied to clipboard
open override fun toString(): String

Get the string representation of @exception error.