Exception: Ferrum::ProcessTimeoutError

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

Overview

Raised when the browser process doesn't produce a websocket URL within the configured :process_timeout.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(timeout, output) ⇒ ProcessTimeoutError

Returns a new instance of ProcessTimeoutError.

Parameters:

  • timeout (::Numeric)
  • output (String)


170
171
172
173
174
# File 'lib/ferrum/errors.rb', line 170

def initialize(timeout, output)
  @output = output
  super("Browser did not produce websocket url within #{timeout} seconds, try to increase `:process_timeout`. " \
        "See https://docs.rubycdp.com/docs/ferrum/customization")
end

Instance Attribute Details

#output ⇒ String (readonly)

Returns the value of attribute output.

Returns:

  • (String)


168
169
170
# File 'lib/ferrum/errors.rb', line 168

def output
  @output
end