ValidateMessage

Description

class Tinman.Core.Validating.ValidateMessage

Derived from

IValidateMessage

Extended by

ParsingError abstract

Default implementation of the IValidateMessage interface.

Public / Methods

Custom


[Pure]
public static method Custom → (2)

message in : string

The message text.

type opt : ValidateMessageType = ValidateMessageType.Error

The message type.

returns → ValidateMessage

The message object.

Creates a new custom validation message.

DirectoryNotFound


[Pure]
public static method DirectoryNotFound → (1)

path in : Path

The path.

returns → ValidateMessage

The message object.

The path does not point to an existing file.

FileNotFound


[Pure]
public static method FileNotFound → (1)

path in : Path

The path.

returns → ValidateMessage

The message object.

The path does not point to an existing file.

InvalidValue


[Pure]
public static method InvalidValue → ()

returns → ValidateMessage

The message object.

The element being validated has an invalid value.

MissingValue


[Pure]
public static method MissingValue → ()

returns → ValidateMessage

The message object.

The element being validated does not have a value.

PathNotFound


[Pure]
public static method PathNotFound → (1)

path in : Path

The path.

returns → ValidateMessage

The message object.

The path does not point to an existing file or directory.

Protected / Constructors

ValidateMessage


protected constructor ValidateMessage → (2)

messageText in : string

[not-null]
The validation message text.

messageType opt : ValidateMessageType = ValidateMessageType.Error

The validation message type.

Creates a new instance of ValidateMessage.