Exception: Jass::JavaScriptError
- Defined in:
- lib/jass/errors.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#attributes ⇒ Object
readonly
Returns the value of attribute attributes.
Instance Method Summary collapse
-
#initialize(attributes = {}) ⇒ JavaScriptError
constructor
A new instance of JavaScriptError.
- #to_s ⇒ Object
Constructor Details
#initialize(attributes = {}) ⇒ JavaScriptError
Returns a new instance of JavaScriptError.
7 8 9 10 11 12 |
# File 'lib/jass/errors.rb', line 7 def initialize(attributes = {}) @attributes = attributes || {} if stack = attributes['stack'] set_backtrace stack.split("\n") end end |
Instance Attribute Details
#attributes ⇒ Object (readonly)
Returns the value of attribute attributes.
5 6 7 |
# File 'lib/jass/errors.rb', line 5 def attributes @attributes end |
Instance Method Details
#to_s ⇒ Object
14 15 16 |
# File 'lib/jass/errors.rb', line 14 def to_s end |