Exception: HttpMimic::JSError
- Defined in:
- lib/http_mimic/exceptions.rb
Overview
Raised when JavaScript execution fails in JSRuntime
Direct Known Subclasses
Instance Attribute Summary collapse
-
#exit_code ⇒ Object
readonly
Returns the value of attribute exit_code.
-
#stderr ⇒ Object
readonly
Returns the value of attribute stderr.
Instance Method Summary collapse
-
#initialize(message, stderr: nil, exit_code: nil) ⇒ JSError
constructor
A new instance of JSError.
Constructor Details
#initialize(message, stderr: nil, exit_code: nil) ⇒ JSError
Returns a new instance of JSError.
39 40 41 42 43 |
# File 'lib/http_mimic/exceptions.rb', line 39 def initialize(, stderr: nil, exit_code: nil) super() @stderr = stderr @exit_code = exit_code end |
Instance Attribute Details
#exit_code ⇒ Object (readonly)
Returns the value of attribute exit_code.
37 38 39 |
# File 'lib/http_mimic/exceptions.rb', line 37 def exit_code @exit_code end |
#stderr ⇒ Object (readonly)
Returns the value of attribute stderr.
37 38 39 |
# File 'lib/http_mimic/exceptions.rb', line 37 def stderr @stderr end |