Skip to content

ValidationResult

Source: Assets/UpscaleSDK/Core/Validator/ValidationResult.cs

class ValidationResult

Represents a validation result class.

Fields

public readonly List<string> Errors = new()

The errors field.

public readonly List<string> Warnings = new()

The warnings field.

Properties

public bool IsValid

Gets or sets the is valid.

Methods

public void AddError(string message)

Add error.

Parameters

Name Description
message The message.

public void AddWarning(string message)

Add warning.

Parameters

Name Description
message The message.

public override string ToString()

Converts to string.