Exception: Ferrum::ResultTooDeepError

Inherits:
BrowserError show all
Defined in:
lib/ferrum/errors.rb,
sig/ferrum/errors.rbs

Overview

Raised when an evaluated script returns a value nested too deeply for Chrome to serialize, around 100 levels.

Instance Attribute Summary

Attributes inherited from BrowserError

#response

Instance Method Summary collapse

Methods inherited from BrowserError

#code, #data

Constructor Details

#initialize(response) ⇒ ResultTooDeepError

Returns a new instance of ResultTooDeepError.

Parameters:

  • response (Hash[String, untyped])


267
268
269
270
# File 'lib/ferrum/errors.rb', line 267

def initialize(response)
  super(response.merge("message" => "The result is nested too deeply to be serialized, return less of it or " \
                                    "use evaluate_handle"))
end