javascriptcore.exception

Module for [ExceptionWrap] class

Types 3

JSCException represents a JavaScript exception.

Methods
GType _getGType() static nothrow
GType _gType() @property nothrow
ExceptionWrap self() nothrowReturns `this`, for use in `with` statements.
ExceptionWrapGidBuilder builder() static nothrowGet builder for [javascriptcore.exception.ExceptionWrap] Returns: New builder object
javascriptcore.exception.ExceptionWrap newWithName(javascriptcore.context.Context context, string name, string message) static nothrowCreate a new #JSCException in context with name and message.
string getBacktraceString() nothrowGet a string with the exception backtrace. Returns: the exception backtrace string or null.
uint getColumnNumber() nothrowGet the column number at which exception happened. Returns: the column number of exception.
uint getLineNumber() nothrowGet the line number at which exception happened. Returns: the line number of exception.
string getMessage() nothrowGet the error message of exception. Returns: the exception error message.
string getName() nothrowGet the error name of exception Returns: the exception error name.
string getSourceUri() nothrowGet the source URI of exception. Returns: the the source URI of exception, or null.
string report() nothrowReturn 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_() nothrowGet 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.
Methods
ExceptionWrap build() nothrowCreate object from builder. Returns: New object