Exception: Puppeteer::Connection::ProtocolError
- Inherits:
-
StandardError
- Object
- StandardError
- Puppeteer::Connection::ProtocolError
- Defined in:
- lib/puppeteer/connection.rb
Instance Method Summary collapse
-
#initialize(method:, error_message:, error_data: nil) ⇒ ProtocolError
constructor
A new instance of ProtocolError.
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}): #{}" if error_data super("#{msg} #{error_data}") else super(msg) end end |