Exception: Capybara::Apparition::CDPError
- Defined in:
- lib/capybara/apparition/errors.rb
Instance Attribute Summary collapse
-
#code ⇒ Object
readonly
Returns the value of attribute code.
-
#message ⇒ Object
readonly
Returns the value of attribute message.
Instance Method Summary collapse
-
#initialize(error) ⇒ CDPError
constructor
A new instance of CDPError.
Constructor Details
#initialize(error) ⇒ CDPError
Returns a new instance of CDPError.
19 20 21 22 |
# File 'lib/capybara/apparition/errors.rb', line 19 def initialize(error) @message = error['message'] @code = error['code'] end |
Instance Attribute Details
#code ⇒ Object (readonly)
Returns the value of attribute code.
17 18 19 |
# File 'lib/capybara/apparition/errors.rb', line 17 def code @code end |
#message ⇒ Object (readonly)
Returns the value of attribute message.
17 18 19 |
# File 'lib/capybara/apparition/errors.rb', line 17 def @message end |