JException

JSCException represents a JavaScript exception.

Constructors

this
this(JSCException* jSCException, bool ownedRef)

Sets our main struct and passes it to the parent class.

this
this(Context context, string message)

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

this
this(Context context, string format, void* args)

Create a new #JSCException in @context using a formatted string for the message. This is similar to jsc_exception_new_printf() except that the arguments to the format string are passed as a va_list.

this
this(Context context, string name, string message)

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

this
this(Context context, string name, string format, void* args)

Create a new #JSCException in @context with @name and using a formatted string for the message. This is similar to jsc_exception_new_with_name_printf() except that the arguments to the format string are passed as a va_list.

Members

Functions

getBacktraceString
string getBacktraceString()

Get a string with the exception backtrace.

getColumnNumber
uint getColumnNumber()

Get the column number at which @exception happened.

getExceptionStruct
JSCException* getExceptionStruct(bool transferOwnership)

Get the main Gtk struct

getLineNumber
uint getLineNumber()

Get the line number at which @exception happened.

getMessage
string getMessage()

Get the error message of @exception.

getName
string getName()

Get the error name of @exception

getSourceUri
string getSourceUri()

Get the source URI of @exception.

getStruct
void* getStruct()

the main Gtk struct as a void*

report
string report()

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

toString
string toString()

Get the string representation of @exception error.

Static functions

getType
GType getType()

Variables

jSCException
JSCException* jSCException;

the main Gtk struct

Meta