Exception: Puppeteer::Bidi::Core::DisposedError

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

Overview

Raised when attempting to use a disposed resource

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(resource_type, reason) ⇒ DisposedError

Returns a new instance of DisposedError.

Parameters:

  • resource_type (String)
  • reason (String)


19
20
21
22
23
# File 'lib/puppeteer/bidi/core/errors.rb', line 19

def initialize(resource_type, reason)
  @resource_type = resource_type
  @reason = reason
  super("#{resource_type} already disposed: #{reason}")
end

Instance Attribute Details

#reasonString (readonly)

: String

Returns:

  • (String)


14
15
16
# File 'lib/puppeteer/bidi/core/errors.rb', line 14

def reason
  @reason
end

#resource_typeString (readonly)

: String

Returns:

  • (String)


13
14
15
# File 'lib/puppeteer/bidi/core/errors.rb', line 13

def resource_type
  @resource_type
end