Exception: BrightData::ScrapeTimeoutError
- Defined in:
- lib/brightdata/errors.rb
Overview
Raised when ‘/scrape` exceeds Bright Data’s 60-second synchronous cap.
Instance Attribute Summary collapse
-
#snapshot ⇒ BrightData::Snapshot?
readonly
Resumable snapshot returned by Bright Data.
-
#snapshot_id ⇒ String
readonly
Snapshot ID returned by Bright Data.
Instance Method Summary collapse
-
#initialize(message, snapshot_id:, snapshot: nil) ⇒ ScrapeTimeoutError
constructor
A new instance of ScrapeTimeoutError.
Constructor Details
#initialize(message, snapshot_id:, snapshot: nil) ⇒ ScrapeTimeoutError
Returns a new instance of ScrapeTimeoutError.
73 74 75 76 77 |
# File 'lib/brightdata/errors.rb', line 73 def initialize(, snapshot_id:, snapshot: nil) super() @snapshot_id = snapshot_id @snapshot = snapshot end |
Instance Attribute Details
#snapshot ⇒ BrightData::Snapshot? (readonly)
Returns resumable snapshot returned by Bright Data.
68 69 70 |
# File 'lib/brightdata/errors.rb', line 68 def snapshot @snapshot end |
#snapshot_id ⇒ String (readonly)
Returns snapshot ID returned by Bright Data.
65 66 67 |
# File 'lib/brightdata/errors.rb', line 65 def snapshot_id @snapshot_id end |