JSC.Exception – javascriptcoregtk-4.0 Reference Manual
Packages
javascriptcoregtk-4.0
JSC
Exception
Exception
Exception.with_name
get_backtrace_string
get_column_number
get_line_number
get_message
get_name
get_source_uri
report
to_string
Exception
Object Hierarchy:
Description:
[
CCode
( type_id =
"jsc_exception_get_type ()"
) ]
public
class
Exception
:
Object
JSCException represents a JavaScript exception.
Namespace:
JSC
Package:
javascriptcoregtk-4.0
Content:
Creation methods:
public
Exception
(
Context
context,
string
message)
Create a new
Exception
in
context
with
message
.
public
Exception.with_name
(
Context
context,
string
name,
string
message)
Create a new
Exception
in
context
with
name
and
message
.
Methods:
public
unowned
string
?
get_backtrace_string
()
Get a string with the exception backtrace.
public
uint
get_column_number
()
Get the column number at which
this
happened.
public
uint
get_line_number
()
Get the line number at which
this
happened.
public
unowned
string
get_message
()
Get the error message of
this
.
public
unowned
string
get_name
()
Get the error name of
this
public
unowned
string
?
get_source_uri
()
Get the source URI of
this
.
public
string
report
()
Return a report message of
this
, containing all the possible details such us source URI, line, column and backtrace, and formatted to be printed.
public
string
to_string
()
Get the string representation of
this
error.
Inherited Members:
All known members inherited from class GLib.Object
@get
@new
@ref
@set
add_toggle_ref
add_weak_pointer
bind_property
connect
constructed
disconnect
dispose
dup_data
dup_qdata
force_floating
freeze_notify
get_class
get_data
get_property
get_qdata
get_type
getv
interface_find_property
interface_install_property
interface_list_properties
is_floating
new_valist
new_with_properties
newv
notify
notify_property
ref_count
ref_sink
remove_toggle_ref
remove_weak_pointer
replace_data
replace_qdata
set_data
set_data_full
set_property
set_qdata
set_qdata_full
set_valist
setv
steal_data
steal_qdata
thaw_notify
unref
watch_closure
weak_ref
weak_unref