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.



84
85
86
87
# File 'lib/ferrum/errors.rb', line 84

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

Instance Attribute Details

#responseObject (readonly)

Returns the value of attribute response.



82
83
84
# File 'lib/ferrum/errors.rb', line 82

def response
  @response
end

Instance Method Details

#codeObject



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

def code
  response["code"]
end

#dataObject



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

def data
  response["data"]
end