ValidationResult
Representation of validation results.
Models a tree of validation errors so that we have as much information as possible about the failure that occurred.
Initializers
using AlibabaCloud.SDK.ROS.CDK.Core;
new ValidationResult(string ErrorMessage = null, ValidationResults Results = null);
| Name | Type | Description |
|---|---|---|
ErrorMessage | string | No description. |
Results | ValidationResults | No description. |
ErrorMessageOptional
- Type: string
ResultsOptional
- Type: ValidationResults
Methods
| Name | Description |
|---|---|
AssertSuccess | Turn a failed validation into an exception. |
ErrorTree | Return a string rendering of the tree of validation failures. |
Prefix | Wrap this result with an error message, if it concerns an error. |
AssertSuccess
private void AssertSuccess()
Turn a failed validation into an exception.
ErrorTree
private string ErrorTree()
Return a string rendering of the tree of validation failures.
Prefix
private ValidationResult Prefix(string Message)
Wrap this result with an error message, if it concerns an error.
- Type: string
Properties
| Name | Type | Description |
|---|---|---|
ErrorMessage | string | No description. |
IsSuccess | bool | No description. |
Results | ValidationResults | No description. |
ErrorMessageRequired
public string ErrorMessage { get; }
- Type: string
IsSuccessRequired
public bool IsSuccess { get; }
- Type: bool
ResultsRequired
public ValidationResults Results { get; }
- Type: ValidationResults