Exception: Ferrum::BrowserError

Inherits:
Error
  • Object
show all
Defined in:
lib/ferrum/errors.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(response) ⇒ BrowserError

Returns a new instance of BrowserError.



91
92
93
94
# File 'lib/ferrum/errors.rb', line 91

def initialize(response)
  @response = response
  super(response["message"])
end

Instance Attribute Details

#responseObject (readonly)

Returns the value of attribute response.



89
90
91
# File 'lib/ferrum/errors.rb', line 89

def response
  @response
end

Instance Method Details

#codeObject



96
97
98
# File 'lib/ferrum/errors.rb', line 96

def code
  response["code"]
end

#dataObject



100
101
102
# File 'lib/ferrum/errors.rb', line 100

def data
  response["data"]
end