-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
…pose them to the user (EvaluationDetails.ErrorCode)
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
namespace ConfigCat.Client; | ||
|
||
public enum EvaluationErrorCode | ||
Check warning on line 3 in src/ConfigCatClient/Evaluation/EvaluationErrorCode.cs GitHub Actions / Build & test (macos-latest)
|
||
{ | ||
UnexpectedError = -1, | ||
Check warning on line 5 in src/ConfigCatClient/Evaluation/EvaluationErrorCode.cs GitHub Actions / Build & test (macos-latest)
|
||
None = 0, | ||
Check warning on line 6 in src/ConfigCatClient/Evaluation/EvaluationErrorCode.cs GitHub Actions / Build & test (macos-latest)
|
||
InvalidConfigModel = 1, | ||
Check warning on line 7 in src/ConfigCatClient/Evaluation/EvaluationErrorCode.cs GitHub Actions / Build & test (macos-latest)
|
||
SettingValueTypeMismatch = 2, | ||
Check warning on line 8 in src/ConfigCatClient/Evaluation/EvaluationErrorCode.cs GitHub Actions / Build & test (macos-latest)
|
||
ConfigJsonNotAvailable = 1000, | ||
Check warning on line 9 in src/ConfigCatClient/Evaluation/EvaluationErrorCode.cs GitHub Actions / Build & test (macos-latest)
|
||
SettingKeyMissing = 1001, | ||
Check warning on line 10 in src/ConfigCatClient/Evaluation/EvaluationErrorCode.cs GitHub Actions / Build & test (macos-latest)
|
||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
using System; | ||
|
||
namespace ConfigCat.Client.Evaluation; | ||
|
||
internal sealed class EvaluationErrorException : InvalidOperationException | ||
{ | ||
public EvaluationErrorException(EvaluationErrorCode errorCode, string message) : base(message) | ||
{ | ||
ErrorCode = errorCode; | ||
} | ||
|
||
public EvaluationErrorCode ErrorCode { get; } | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
using System; | ||
|
||
namespace ConfigCat.Client; | ||
|
||
internal sealed class InvalidConfigModelException : InvalidOperationException | ||
{ | ||
public InvalidConfigModelException(string message) : base(message) { } | ||
} |