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
DomException IdentityCredentialError

Constructors

NameDescription
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.cs

Creates an error without details.

public IdentityCredentialError()

IdentityCredentialError(string?)

IdentityCredential.cs

Creates an error with a message.

public IdentityCredentialError(string? message)

IdentityCredentialError(string, IdentityCredentialErrorInit?)

IdentityCredential.cs

Creates an error with a message and its details (https://w3c-fedid.github.io/FedCM/#dom-identitycredentialerror-identitycredentialerror).

public IdentityCredentialError(string message, IdentityCredentialErrorInit? options)
Parameters
message string
The message of the error.
options IdentityCredentialErrorInit?
The type of the error and the URL that describes it.
See also

IdentityCredentialError(string?, Exception?)

IdentityCredential.cs

Creates an error with a message and an inner exception.

public IdentityCredentialError(string? message, Exception? innerException)
Parameters
message string?
The message of the error.
innerException Exception?
The exception that caused the error.

Properties

NameDescription
ErrorGets the type of the error (e.g. unauthorized_client), or the empty string.
UrlGets 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; }