Class AuthenticationFailure
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
codeFailureCode
AuthenticationFailure(FailureCode, Exception)
public AuthenticationFailure(FailureCode code, Exception cause)
Parameters
codeFailureCodecauseException
AuthenticationFailure(FailureCode, string?)
[JsonConstructor]
public AuthenticationFailure(FailureCode code, string? cause)
Parameters
codeFailureCodecausestring
Properties
Cause
[Key(1)]
public string? Cause { get; }
Property Value
Code
[Key(0)]
public FailureCode Code { get; }
Property Value
Error
[IgnoreMember]
public Exception? Error { get; }
Property Value
Methods
Equals(object?)
Determines whether the specified object is equal to the current object.
public override bool Equals(object? obj)
Parameters
objobjectThe object to compare with the current object.
Returns
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
codeFailureCode