Exception: H8::JsError
- Defined in:
- lib/h8/errors.rb,
ext/h8/main.cpp
Overview
The general error caused by the script execution, e.g. uncaught javascript exceptinos and like. Check #message to see the cause.
Direct Known Subclasses
Instance Attribute Summary collapse
-
#javascript_error ⇒ Object
readonly
Javascript Error object.
-
#message ⇒ Object
readonly
Error message.
Instance Method Summary collapse
-
#javascript_backtrace ⇒ Object
String that represents stack trace if any as multiline string (n separated).
-
#name ⇒ Object
Error name.
- #to_s ⇒ Object
Instance Attribute Details
#javascript_error ⇒ Object (readonly)
Javascript Error object. May be nil
15 16 17 |
# File 'lib/h8/errors.rb', line 15 def javascript_error @javascript_error end |
Instance Method Details
#javascript_backtrace ⇒ Object
String that represents stack trace if any as multiline string (n separated)
27 28 29 |
# File 'lib/h8/errors.rb', line 27 def javascript_backtrace @javascript_error ? @javascript_error.stack : end |
#name ⇒ Object
Error name
22 23 24 |
# File 'lib/h8/errors.rb', line 22 def name @javascript_error.name ? @javascript_error.name : end |
#to_s ⇒ Object
17 18 19 |
# File 'lib/h8/errors.rb', line 17 def to_s end |