-
Notifications
You must be signed in to change notification settings - Fork 17
/
ErrorType.cs
51 lines (43 loc) · 1.58 KB
/
ErrorType.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
using System.ComponentModel;
namespace OpenFeature.Constant
{
/// <summary>
/// These errors are used to indicate abnormal execution when evaluation a flag
/// </summary>
/// <seealso href="https://github.com/open-feature/spec/blob/v0.5.2/specification/sections/02-providers.md#requirement-227"/>
public enum ErrorType
{
/// <summary>
/// Default value, no error occured
/// </summary>
None,
/// <summary>
/// Provider has yet been initialized
/// </summary>
[Description("PROVIDER_NOT_READY")] ProviderNotReady,
/// <summary>
/// Provider was unable to find the flag
/// </summary>
[Description("FLAG_NOT_FOUND")] FlagNotFound,
/// <summary>
/// Provider failed to parse the flag response
/// </summary>
[Description("PARSE_ERROR")] ParseError,
/// <summary>
/// Request type does not match the expected type
/// </summary>
[Description("TYPE_MISMATCH")] TypeMismatch,
/// <summary>
/// Abnormal execution of the provider
/// </summary>
[Description("GENERAL")] General,
/// <summary>
/// Context does not satisfy provider requirements.
/// </summary>
[Description("INVALID_CONTEXT")] InvalidContext,
/// <summary>
/// Context does not contain a targeting key and the provider requires one.
/// </summary>
[Description("TARGETING_KEY_MISSING")] TargetingKeyMissing,
}
}