Skip to content

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

import "github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore"
alicloudroscdkcore.NewValidationResult(errorMessage *string, results ValidationResults) ValidationResult
Name Type Description
errorMessage *string No description.
results ValidationResults No description.

errorMessageOptional

  • Type: *string

resultsOptional


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

func AssertSuccess()

Turn a failed validation into an exception.

ErrorTree

func ErrorTree() *string

Return a string rendering of the tree of validation failures.

Prefix

func Prefix(message *string) ValidationResult

Wrap this result with an error message, if it concerns an error.

messageRequired

  • Type: *string

Properties

Name Type Description
ErrorMessage *string No description.
IsSuccess *bool No description.
Results ValidationResults No description.

ErrorMessageRequired

func ErrorMessage() *string
  • Type: *string

IsSuccessRequired

func IsSuccess() *bool
  • Type: *bool

ResultsRequired

func Results() ValidationResults