Добавьте файлы проекта.
This commit is contained in:
3
ArgumentsToolkit.Core/Errors/ArgumentError.cs
Normal file
3
ArgumentsToolkit.Core/Errors/ArgumentError.cs
Normal file
@@ -0,0 +1,3 @@
|
||||
namespace ArgumentsToolkit;
|
||||
|
||||
public record ArgumentError(ErrorCode Code, string Message, string? Option = null);
|
||||
14
ArgumentsToolkit.Core/Errors/ErrorCode.cs
Normal file
14
ArgumentsToolkit.Core/Errors/ErrorCode.cs
Normal file
@@ -0,0 +1,14 @@
|
||||
namespace ArgumentsToolkit;
|
||||
|
||||
/// <summary>
|
||||
/// Ошибки парсера
|
||||
/// </summary>
|
||||
public enum ErrorCode
|
||||
{
|
||||
UnknownOption,
|
||||
MissingValue,
|
||||
InvalidValue,
|
||||
MissingRequired,
|
||||
DuplicateOption,
|
||||
ConversionFailed,
|
||||
}
|
||||
Reference in New Issue
Block a user