@mega-yfue/eufy-sdk / LiveSnapshotUnavailableError
Class: LiveSnapshotUnavailableError
Thrown by MediaProvider.snapshotLive when no still could be produced.
retryable is the distinction the reason exists for: a burst the decoder refused is per-attempt framing and another try is worthwhile, while an unrunnable decoder is host configuration that no number of retries will change. Without it every failure looks alike.
It is derived from reason rather than passed in, so the two can never disagree, and every caller reads one answer instead of re-deriving the mapping and drifting from it.
The underlying diagnostics are preserved in the error's message and, where there is one, its cause — so classifying the failure never costs the detail needed to explain it.
Extends
Error
Constructors
Constructor
new LiveSnapshotUnavailableError(
reason,
message,
options?
): LiveSnapshotUnavailableError;Parameters
reason
message
string
options?
cause?
unknown
Returns
LiveSnapshotUnavailableError
Overrides
Error.constructorProperties
reason
readonly reason: LiveSnapshotUnavailableReason;retryable
readonly retryable: boolean;Whether another attempt could plausibly succeed without the host changing anything.