Exception: RubyRunJs::JsException
- Inherits:
-
StandardError
- Object
- StandardError
- RubyRunJs::JsException
- Defined in:
- lib/ruby_run_js/objects/js_exception.rb
Instance Attribute Summary collapse
-
#msg ⇒ Object
readonly
Returns the value of attribute msg.
-
#throw_value ⇒ Object
readonly
Returns the value of attribute throw_value.
-
#type ⇒ Object
readonly
Returns the value of attribute type.
Instance Method Summary collapse
-
#initialize(type, msg, throw_value) ⇒ JsException
constructor
A new instance of JsException.
- #to_s ⇒ Object
Constructor Details
#initialize(type, msg, throw_value) ⇒ JsException
Returns a new instance of JsException.
8 9 10 11 12 |
# File 'lib/ruby_run_js/objects/js_exception.rb', line 8 def initialize(type, msg, throw_value) @type = type @msg = msg @throw_value = throw_value end |
Instance Attribute Details
#msg ⇒ Object (readonly)
Returns the value of attribute msg.
6 7 8 |
# File 'lib/ruby_run_js/objects/js_exception.rb', line 6 def msg @msg end |
#throw_value ⇒ Object (readonly)
Returns the value of attribute throw_value.
6 7 8 |
# File 'lib/ruby_run_js/objects/js_exception.rb', line 6 def throw_value @throw_value end |
#type ⇒ Object (readonly)
Returns the value of attribute type.
6 7 8 |
# File 'lib/ruby_run_js/objects/js_exception.rb', line 6 def type @type end |
Instance Method Details
#to_s ⇒ Object
14 15 16 |
# File 'lib/ruby_run_js/objects/js_exception.rb', line 14 def to_s "#{@type}: #{@msg}" end |