1.3 <JSCException>

Class: <JSCException>

It derives from <GObject>.

JSCException represents a JavaScript exception.

Procedures

Method: exception:get-backtrace-string self ⇒ %return
Method: get-backtrace-string self ⇒ %return

Get a string with the exception backtrace.

self

Passed: a <JSCException>.

a <JSCException>

%return

Returned: a string, or #f.

the exception backtrace string or #f.

Method: exception:get-column-number self ⇒ %return
Method: get-column-number self ⇒ %return

Get the column number at which self happened.

self

Passed: a <JSCException>.

a <JSCException>

%return

Returned: an unsigned 32-bit integer.

the column number of self.

Method: exception:get-line-number self ⇒ %return
Method: get-line-number self ⇒ %return

Get the line number at which self happened.

self

Passed: a <JSCException>.

a <JSCException>

%return

Returned: an unsigned 32-bit integer.

the line number of self.

Method: exception:get-message self ⇒ %return
Method: get-message self ⇒ %return

Get the error message of self.

self

Passed: a <JSCException>.

a <JSCException>

%return

Returned: a string.

the self error message.

Method: exception:get-name self ⇒ %return
Method: get-name self ⇒ %return

Get the error name of self

self

Passed: a <JSCException>.

a <JSCException>

%return

Returned: a string.

the self error name.

Method: exception:get-source-uri self ⇒ %return
Method: get-source-uri self ⇒ %return

Get the source URI of self.

self

Passed: a <JSCException>.

a <JSCException>

%return

Returned: a string, or #f.

the the source URI of self, or #f.

Procedure: exception:new context message ⇒ %return

Create a new <JSCException> in context with message.

context

Passed: a <JSCContext>.

a <JSCContext>

message

Passed: a string.

the error message

%return

Returned: a <JSCException>.

a new <JSCException>.

Procedure: exception:new-with-name context name message ⇒ %return

Create a new <JSCException> in context with name and message.

context

Passed: a <JSCContext>.

a <JSCContext>

name

Passed: a string.

the error name

message

Passed: a string.

the error message

%return

Returned: a <JSCException>.

a new <JSCException>.

Method: exception:report self ⇒ %return
Method: report self ⇒ %return

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

self

Passed: a <JSCException>.

a <JSCException>

%return

Returned: a string.

a new string with the exception report

Method: exception:to-string self ⇒ %return
Method: to-string self ⇒ %return

Get the string representation of self error.

self

Passed: a <JSCException>.

a <JSCException>

%return

Returned: a string.

the string representation of self.