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