Exception: BrightData::SnapshotFailedError
- Defined in:
- lib/brightdata/errors.rb
Overview
Raised by explicit exception-based snapshot failure flows.
‘Snapshot#wait` normally returns `SimpleResult::Failure` on failed snapshots. This class is reserved for callers who opt into exception semantics in future API versions.
Instance Attribute Summary collapse
-
#details ⇒ Hash?
readonly
Failure details returned by Bright Data.
-
#snapshot_id ⇒ String
readonly
Snapshot ID.
Instance Method Summary collapse
-
#initialize(message, snapshot_id:, details: nil) ⇒ SnapshotFailedError
constructor
A new instance of SnapshotFailedError.
Constructor Details
#initialize(message, snapshot_id:, details: nil) ⇒ SnapshotFailedError
Returns a new instance of SnapshotFailedError.
95 96 97 98 99 |
# File 'lib/brightdata/errors.rb', line 95 def initialize(, snapshot_id:, details: nil) super() @snapshot_id = snapshot_id @details = details end |
Instance Attribute Details
#details ⇒ Hash? (readonly)
Returns failure details returned by Bright Data.
90 91 92 |
# File 'lib/brightdata/errors.rb', line 90 def details @details end |
#snapshot_id ⇒ String (readonly)
Returns snapshot ID.
87 88 89 |
# File 'lib/brightdata/errors.rb', line 87 def snapshot_id @snapshot_id end |