Exception
-
class Exception(**properties: Any)
Superclasses: Object
JSCException represents a JavaScript exception.
Constructors
-
class Exception
-
classmethod new(context: Context, message: str) → Exception
Create a new Exception
in context
with message
.
- Parameters:
-
-
classmethod new_with_name(context: Context, name: str, message: str) → Exception
Create a new Exception
in context
with name
and message
.
- Parameters:
-
Methods
-
class Exception
-
get_backtrace_string() → str | None
Get a string with the exception backtrace.
-
get_column_number() → int
Get the column number at which exception
happened.
-
get_line_number() → int
Get the line number at which exception
happened.
-
get_message() → str
Get the error message of exception
.
-
get_name() → str
Get the error name of exception
-
get_source_uri() → str | None
Get the source URI of exception
.
-
report() → str
Return a report message of exception
, containing all the possible details such us
source URI, line, column and backtrace, and formatted to be printed.
-
to_string() → str
Get the string representation of exception
error.