JavaScriptCore.Exception¶
- Subclasses:
None
Methods¶
- Inherited:
- Structs:
class |
|
class |
|
|
|
|
|
|
|
|
Virtual Methods¶
- Inherited:
Properties¶
None
Signals¶
- Inherited:
Fields¶
- Inherited:
Name |
Type |
Access |
Description |
---|---|---|---|
parent |
r |
Class Details¶
- class JavaScriptCore.Exception(**kwargs)¶
- Bases:
- Abstract:
No
- Structure:
JavaScriptCore.Exception
represents a JavaScript exception.- classmethod new(context, message)¶
- Parameters:
context (
JavaScriptCore.Context
) – aJavaScriptCore.Context
message (
str
) – the error message
- Returns:
a new
JavaScriptCore.Exception
.- Return type:
Create a new
JavaScriptCore.Exception
in context with message.
- classmethod new_with_name(context, name, message)¶
- Parameters:
context (
JavaScriptCore.Context
) – aJavaScriptCore.Context
name (
str
) – the error namemessage (
str
) – the error message
- Returns:
a new
JavaScriptCore.Exception
.- Return type:
Create a new
JavaScriptCore.Exception
in context with name and message.
- get_backtrace_string()¶
-
Get a string with the exception backtrace.
- get_column_number()¶
- Returns:
the column number of self.
- Return type:
Get the column number at which self happened.
- get_line_number()¶
- Returns:
the line number of self.
- Return type:
Get the line number at which self happened.
- get_source_uri()¶
-
Get the source URI of self.
- report()¶
- Returns:
a new string with the exception report
- Return type:
Return a report message of self, containing all the possible details such us source URI, line, column and backtrace, and formatted to be printed.