Table of Contents

Class AuthenticationFailure

Namespace
The.Security
Assembly
Instagile.dll

An error category code and possibly extra details.

[MessagePackObject(false)]
public class AuthenticationFailure
Inheritance
AuthenticationFailure
Inherited Members

Constructors

AuthenticationFailure(FailureCode)

public AuthenticationFailure(FailureCode code)

Parameters

code FailureCode

AuthenticationFailure(FailureCode, Exception)

public AuthenticationFailure(FailureCode code, Exception cause)

Parameters

code FailureCode
cause Exception

AuthenticationFailure(FailureCode, string?)

[JsonConstructor]
public AuthenticationFailure(FailureCode code, string? cause)

Parameters

code FailureCode
cause string

Properties

Cause

[Key(1)]
public string? Cause { get; }

Property Value

string

Code

[Key(0)]
public FailureCode Code { get; }

Property Value

FailureCode

Error

[IgnoreMember]
public Exception? Error { get; }

Property Value

Exception

Methods

Equals(object?)

Determines whether the specified object is equal to the current object.

public override bool Equals(object? obj)

Parameters

obj object

The object to compare with the current object.

Returns

bool

true if the specified object is equal to the current object; otherwise, false.

GetHashCode()

Serves as the default hash function.

public override int GetHashCode()

Returns

int

A hash code for the current object.

ToString()

Returns a string that represents the current object.

public override string ToString()

Returns

string

A string that represents the current object.

Operators

implicit operator AuthenticationFailure(FailureCode)

public static implicit operator AuthenticationFailure(FailureCode code)

Parameters

code FailureCode

Returns

AuthenticationFailure