mirror of
https://github.com/bitwarden/mobile.git
synced 2024-09-28 03:57:43 +02:00
26 lines
596 B
C#
26 lines
596 B
C#
|
namespace Bit.Core.Utilities.Fido2
|
||
|
{
|
||
|
public class Fido2ClientException : Exception
|
||
|
{
|
||
|
public enum ErrorCode
|
||
|
{
|
||
|
NotAllowedError,
|
||
|
TypeError,
|
||
|
SecurityError,
|
||
|
UriBlockedError,
|
||
|
NotSupportedError,
|
||
|
InvalidStateError,
|
||
|
UnknownError
|
||
|
}
|
||
|
|
||
|
public ErrorCode Code { get; }
|
||
|
public string Reason { get; }
|
||
|
|
||
|
public Fido2ClientException(ErrorCode code, string reason) : base($"{code} ({reason})")
|
||
|
{
|
||
|
Code = code;
|
||
|
Reason = reason;
|
||
|
}
|
||
|
}
|
||
|
}
|