[screen-wake-lock] Distinguish exceptions on .request() (#352)

marcoscaceres has just created a new issue for https://github.com/w3c/screen-wake-lock:

== Distinguish exceptions on .request() ==
I'm wondering if we should distinguish a few exceptions it more obvious why things failed? (without relying on error messages).

For instance, in request(), when document is null or not fully active or hidden, maybe an `InvalidStateError` might be good there?



Please view or discuss this issue at https://github.com/w3c/screen-wake-lock/issues/352 using your GitHub account


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Wednesday, 28 September 2022 06:03:34 UTC