Skip to content

@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 ​

ts
new LiveSnapshotUnavailableError(
   reason, 
   message, 
   options?
): LiveSnapshotUnavailableError;

Parameters ​

reason ​

LiveSnapshotUnavailableReason

message ​

string

options? ​
cause? ​

unknown

Returns ​

LiveSnapshotUnavailableError

Overrides ​

Error.constructor

Properties ​

reason ​

ts
readonly reason: LiveSnapshotUnavailableReason;

retryable ​

ts
readonly retryable: boolean;

Whether another attempt could plausibly succeed without the host changing anything.

Independent and unofficial. Not affiliated with, endorsed by, or sponsored by Anker Innovations, Anker eufy, or eufy. "Anker eufy", "eufy" and "Anker" are trademarks of their respective owners. Use responsibly — rapid or failed logins can trigger captcha or temporary cooldowns.