Class TigerCliValidationResult
Result of Validate(): either success or a failure carrying a
user-facing error message. Created only through Success() and
Error(string).
public sealed class TigerCliValidationResult
- Inheritance
-
TigerCliValidationResult
- Inherited Members
Properties
ErrorMessage
The user-facing failure message;
null on success. The framework renders it as
literal text (markup-escaped) inside its error line.public string? ErrorMessage { get; }
Property Value
IsValid
Whether validation passed. When
false, ErrorMessage is set.public bool IsValid { get; }
Property Value
Methods
Error(string)
Creates a failing result with the given user-facing message. The run ends with the
ValidationError exit mapping.
public static TigerCliValidationResult Error(string message)
Parameters
messagestring
Returns
Success()
Creates a passing result.
public static TigerCliValidationResult Success()