Skip to content

eufy-mega / core/contracts / SnapshotUnavailableError

Class: SnapshotUnavailableError

Thrown by MediaProvider.snapshot when neither the stored still nor the live-burst fallback yields an image. reason lets a caller branch its presentation (e.g. an offline vs generic- unavailable placeholder) — the SDK returns a real JPEG or this error, never placeholder bytes (rendering an "unavailable" image is presentation, not Eufy truth).

Extends

  • Error

Constructors

Constructor

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

Parameters

reason

SnapshotUnavailableReason

message

string

options?
cause?

unknown

Returns

SnapshotUnavailableError

Overrides

ts
Error.constructor

Properties

reason

ts
readonly reason: SnapshotUnavailableReason;

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