Exception: Puppeteer::Connection::ProtocolError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/puppeteer/connection.rb

Instance Method Summary collapse

Constructor Details

#initialize(method:, error_message:, error_data: nil) ⇒ ProtocolError

Returns a new instance of ProtocolError.



9
10
11
12
13
14
15
16
# File 'lib/puppeteer/connection.rb', line 9

def initialize(method:, error_message:, error_data: nil)
  msg = "Protocol error (#{method}): #{error_message}"
  if error_data
    super("#{msg} #{error_data}")
  else
    super(msg)
  end
end