IdentityCredentialError Class
The exception of a FedCM request whose identity provider did not mint a token after the user chose an account (https://w3c-fedid.github.io/FedCM/#browser-api-identity-credential-error-interface): a DomException named IdentityCredentialError, with the error and the URL that the identity assertion endpoint returned.
public sealed class IdentityCredentialError : DomException- Inheritance
DomExceptionIdentityCredentialError
Constructors
| Name | Description |
|---|---|
| IdentityCredentialError() | Creates an error without details. |
| IdentityCredentialError(string?) | Creates an error with a message. |
| IdentityCredentialError(string, IdentityCredentialErrorInit?) | Creates an error with a message and its details (https://w3c-fedid.github.io/FedCM/#dom-identitycredentialerror-identitycredentialerror). |
| IdentityCredentialError(string?, Exception?) | Creates an error with a message and an inner exception. |
IdentityCredentialError overloads
IdentityCredentialError()
IdentityCredential.csCreates an error without details.
public IdentityCredentialError()IdentityCredentialError(string?)
IdentityCredential.csIdentityCredentialError(string, IdentityCredentialErrorInit?)
IdentityCredential.csCreates an error with a message and its details (https://w3c-fedid.github.io/FedCM/#dom-identitycredentialerror-identitycredentialerror).
public IdentityCredentialError(string message, IdentityCredentialErrorInit? options)Parameters
messagestring- The message of the error.
optionsIdentityCredentialErrorInit?- The type of the error and the URL that describes it.
See also
IdentityCredentialError(string?, Exception?)
IdentityCredential.csCreates an error with a message and an inner exception.
Parameters
messagestring?- The message of the error.
innerExceptionException?- The exception that caused the error.
Properties
| Name | Description |
|---|---|
| Error | Gets the type of the error (e.g. unauthorized_client), or the empty string. |
| Url | Gets the URL of a page that describes the error, or the empty string. |
Gets the type of the error (e.g. unauthorized_client), or the empty string.
public string Error { get; }Gets the URL of a page that describes the error, or the empty string.
public string Url { get; }