ValidatingException

Description

sealed class Tinman.Core.Validating.ValidatingException

Derived from

TinmanException

An IValidatable object is being used that has one or more validation errors and thus cannot perform properly.

Unless stated otherwise, ValidatingExceptions are only thrown for validation errors (see ValidateMessageType.Error), however the provided validation Result may contain both errors and warnings (i.e. the validated object has reported both errors and warnings).

Public / Constructors

Failure

2 overloads


public static method Failure1 → (2)

source in : string

The error source tag.

message in : IValidateMessage

The validation message.

returns → ValidatingException

The ready-to-throw exception.

Validation has failed.


public static method Failure2 → (3)

source in : string

The error source tag.

result in : ValidateResult

The validation result.

message opt : string = null

Optional failure message or null to use a default failure message.

returns → ValidatingException

The ready-to-throw exception.

Validation has failed.

Public / Attributes

Result


public readonly attribute Result → (ValidateResult)

The validation result.