aboutsummaryrefslogtreecommitdiff
path: root/docker/crupest-api/CrupestApi/CrupestApi.Secrets/VerifySecretException.cs
blob: 795fa3e0b79adf1fcff1b97bc5d78a5489375408 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
namespace CrupestApi.Secrets;

public class VerifySecretException : Exception
{
    public VerifySecretException(string? requestKey, string message, ErrorKind kind = ErrorKind.Unauthorized) : base(message)
    {
        RequestKey = requestKey;
        Kind = kind;
    }

    public enum ErrorKind
    {
        Unauthorized,
        Forbidden
    }

    public ErrorKind Kind { get; set; }

    public string? RequestKey { get; set; }
}