W3C home > Mailing lists > Public > public-device-apis-log@w3.org > October 2022

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

From: Marcos Cáceres via GitHub <sysbot+gh@w3.org>
Date: Tue, 04 Oct 2022 05:28:41 +0000
To: public-device-apis-log@w3.org
Message-ID: <issue_comment.created-1266415477-1664861320-sysbot+gh@w3.org>
> That's what the message is for. If we are explaining the error to the developer then we have as many words as we want to do that. 

Ideally want to avoid that, as the message allows for further UA identification (why I asked in the OP "without relying on error messages"). 

> That's where having well-considered use of the DOMException types is important.

Exactly. 

-- 
GitHub Notification of comment by marcoscaceres
Please view or discuss this issue at https://github.com/w3c/screen-wake-lock/issues/352#issuecomment-1266415477 using your GitHub account


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Tuesday, 4 October 2022 05:28:43 UTC

This archive was generated by hypermail 2.4.0 : Tuesday, 4 October 2022 05:28:43 UTC