JavaScriptCore.Exception

g GObject.Object GObject.Object JavaScriptCore.Exception JavaScriptCore.Exception GObject.Object->JavaScriptCore.Exception

Subclasses:

None

Methods

Inherited:

GObject.Object (37)

Structs:

GObject.ObjectClass (5)

class

new (context, message)

class

new_with_name (context, name, message)

get_backtrace_string ()

get_column_number ()

get_line_number ()

get_message ()

get_name ()

get_source_uri ()

report ()

to_string ()

Virtual Methods

Inherited:

GObject.Object (7)

Properties

None

Signals

Inherited:

GObject.Object (1)

Fields

Inherited:

GObject.Object (1)

Name

Type

Access

Description

parent

GObject.Object

r

Class Details

class JavaScriptCore.Exception(**kwargs)
Bases:

GObject.Object

Abstract:

No

Structure:

JavaScriptCore.ExceptionClass

JavaScriptCore.Exception represents a JavaScript exception.

classmethod new(context, message)
Parameters:
Returns:

a new JavaScriptCore.Exception.

Return type:

JavaScriptCore.Exception

Create a new JavaScriptCore.Exception in context with message.

classmethod new_with_name(context, name, message)
Parameters:
Returns:

a new JavaScriptCore.Exception.

Return type:

JavaScriptCore.Exception

Create a new JavaScriptCore.Exception in context with name and message.

get_backtrace_string()
Returns:

the exception backtrace string or None.

Return type:

str or None

Get a string with the exception backtrace.

get_column_number()
Returns:

the column number of self.

Return type:

int

Get the column number at which self happened.

get_line_number()
Returns:

the line number of self.

Return type:

int

Get the line number at which self happened.

get_message()
Returns:

the self error message.

Return type:

str

Get the error message of self.

get_name()
Returns:

the self error name.

Return type:

str

Get the error name of self

get_source_uri()
Returns:

the the source URI of self, or None.

Return type:

str or None

Get the source URI of self.

report()
Returns:

a new string with the exception report

Return type:

str

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

to_string()
Returns:

the string representation of self.

Return type:

str

Get the string representation of self error.