Class JSException

Thrown when a JS VM is aborted with the xsUnhandledExceptionExit status.

class JSException
  : object.Exception ;

Constructors

NameDescription
this (msg, exception, file, line) Constructs a new instace of JSException.
this (msg, script, file, line) Constructs a new instace of JSException given the Script from which this exception was thrown.

Fields

NameTypeDescription
exception const(JSValue)The exception value that was thrown from the VM.
scriptFile const(string)The JS script or module file from which the exception was thrown.
scriptLine const(ulong)The line of the JS script or module file from which the exception was thrown.

Properties

NameTypeDescription
script[get] const(Script)The Script from which this exception was thrown.