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
message
string
options?
cause?
unknown
Returns
SnapshotUnavailableError
Overrides
ts
Error.constructorProperties
reason
ts
readonly reason: SnapshotUnavailableReason;