Skip to content

Commit

Permalink
error
Browse files Browse the repository at this point in the history
  • Loading branch information
npm1 committed Aug 1, 2024
1 parent e69c7f4 commit 52f2de3
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions spec/index.bs
Original file line number Diff line number Diff line change
Expand Up @@ -696,7 +696,7 @@ to use a federated account.

<xmp class="idl">
dictionary IdentityCredentialErrorInit {
DOMString code;
DOMString error;
DOMString url;
};
</xmp>
Expand All @@ -705,7 +705,7 @@ dictionary IdentityCredentialErrorInit {
[Exposed=Window, SecureContext]
interface IdentityCredentialError : DOMException {
constructor(optional DOMString message = "", optional IdentityCredentialErrorInit options = {});
readonly attribute DOMString code;
readonly attribute DOMString error;
readonly attribute DOMString url;
};
</pre>
Expand All @@ -714,15 +714,15 @@ dictionary IdentityCredentialErrorInit {
The {{IdentityCredentialError/constructor()}}, given a |realm|, a {{DOMString}} |message| and a
{{IdentityCredentialErrorInit}} |options| must run the following steps:
1. Invoke the {{DOMException}}'s {{DOMException/constructor()}}, passing |realm| and |message|.
1. Set <a>this</a>.{{IdentityCredentialError/code}} to |options|.{{IdentityCredentialError/code}}
1. Set <a>this</a>.{{IdentityCredentialError/error}} to |options|.{{IdentityCredentialError/error}}
if it is present in |options|, or to "" otherwise.
1. Set <a>this</a>.{{IdentityCredentialError/url}} to |options|.{{IdentityCredentialError/url}}
if it is present in |options|, or to "" otherwise.
</div>

<dl>
: <b>{{IdentityCredentialError/code}}</b>
:: The {{IdentityCredentialError/code}}'s attribute getter returns the value it is set to.
: <b>{{IdentityCredentialError/error}}</b>
:: The {{IdentityCredentialError/error}}'s attribute getter returns the value it is set to.
It represents the type of error which resulted in an {{IdentityCredential}} not being created.
: <b>{{IdentityCredentialError/url}}</b>
:: The {{IdentityCredentialError/url}}'s attribute getter returns the value it is set to.
Expand Down Expand Up @@ -1053,7 +1053,7 @@ throwing the exception.
1. If |credential| is an {{IdentityCredentialError}}:
1. The [=user agent=] MUST show UI to the user indicating that the identity assertion fetch
has failed.
1. The [=user agent=] MAY use the {{IdentityCredentialError/code}} in its UI to provide a
1. The [=user agent=] MAY use the {{IdentityCredentialError/error}} in its UI to provide a
more specific error message to the user. For instance, if the value is one of
"invalid_request", "unauthorized_client", "access_denied", "server_error", and
"temporarily_unavailable", the [=user agent=] may note the reason in a user-friendly
Expand Down

0 comments on commit 52f2de3

Please sign in to comment.