Skip to content

Errors and fallbacks

Keep usable functionality available during connection, permission, lifecycle, or service failures, and provide clear, recoverable states.

Handle each type of failure#

Situations encounteredWhat the application should doFurther confirmation
Device disconnected or message timed outDisables the device-dependent operation and shows whether the current result has been confirmed.Ask for connections and business status before deciding whether to try again.
Permission denied or capability missingDescribe the functions affected and retain a path that does not depend on that capability.Check declarations, authorization, Host / Bridge support, and call state.
Suspension, exit, or runtime recreationEnd old requests and release resources no longer in use.Reinitialize or query state on recovery; do not reuse old sessions.
Service failed or content emptyProvides clear empty status, timeout and cancellation operations.Query long-running server tasks by task ID to avoid duplicate submissions.