javascriptcore.exception

Module for [ExceptionWrap] class

Types 3

JSCException represents a JavaScript exception.

Methods
GType _gType() @property
ExceptionWrap self()Returns `this`, for use in `with` statements.
ExceptionWrapGidBuilder builder()Get builder for [javascriptcore.exception.ExceptionWrap] Returns: New builder object
javascriptcore.exception.ExceptionWrap newWithName(javascriptcore.context.Context context, string name, string message)Create a new #JSCException in context with name and message.
string getBacktraceString()Get a string with the exception backtrace. Returns: the exception backtrace string or null.
uint getColumnNumber()Get the column number at which exception happened. Returns: the column number of exception.
uint getLineNumber()Get the line number at which exception happened. Returns: the line number of exception.
string getMessage()Get the error message of exception. Returns: the exception error message.
string getName()Get the error name of exception Returns: the exception error name.
string getSourceUri()Get the source URI of exception. Returns: the the source URI of exception, or null.
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. Returns: a new string with the exception report
string toString_()Get the string representation of exception error. Returns: the string representation of exception.
Constructors
this(void * ptr, Flag!"Take" take)
this(javascriptcore.context.Context context, string message)Create a new #JSCException in context with message.

Fluent builder for [javascriptcore.exception.ExceptionWrap]