TINMAN 3D / REALTIME TERRAIN
Software Development Kit - User Manual

struct ValidateResult in Tinman.Core.Validating

Holds the results of the validation of an object graph.

struct ValidateResult  

See also:

Validator

Public / Constants

Success

public static readonly field Success
type ValidateResult

Public / Attributes

Errors

The validation errors.

public readonly field Errors
type IValidateMessage[]

Remarks:

This array will either be non-empty (validation has failed) or null (validation has succeeded).

See also:

ValidateMessageType.Error

HasErrors

Has the validation failed (i.e. one or more errors have occurred)?

public property HasErrors { get }
type bool
value true if the validation has failed, false if not.

HasMessages

Have there been any messages (errors / warnings) during validation?

public property HasMessages { get }
type bool
value true if there is at least one error or warning, false if not.

HasWarnings

Have there been any warnings during validation?

public property HasWarnings { get }
type bool
value true if there were one or more warning messages, false if not.

Messages

The validation messages (errors and warnings) or null.

public readonly field Messages
type IValidateMessage[]

Remarks:

This array will either be non-empty (one or more errors or warnings are present) or null (there are no errors and no warnings).

See also:

ValidateMessageType

Warnings

The validation warnings or null.

public readonly field Warnings
type IValidateMessage[]

Remarks:

This array will either be non-empty (one or more warnings are present) or null (there are no warnings).

See also:

ValidateMessageType.Warning

Public / Methods

Throw

Returns a ValidatingException exception for this validation result, assuming it has failed..

public method Throw (string source, string message = null)
type ValidatingException
params source Error source tag.
  message Optional error message.
returns [not-null] The ready-to-throw exception.

ToString

public override method ToString ()
type string