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.

Directory​Not​Found


[Pure]
public static method DirectoryNotFound → (2)

path in : Path

The path.

type opt : ValidateMessageType = ValidateMessageType.Warning

The message type.

returns → ValidateMessage

The message object.

The path does not point to an existing file.

File​Not​Found


[Pure]
public static method FileNotFound → (2)

path in : Path

The path.

type opt : ValidateMessageType = ValidateMessageType.Warning

The message type.

returns → ValidateMessage

The message object.

The path does not point to an existing file.

Invalid​Value


[Pure]
public static method InvalidValue → ()

returns → ValidateMessage

The message object.

The element being validated has an invalid value.

Missing​Value


[Pure]
public static method MissingValue → ()

returns → ValidateMessage

The message object.

The element being validated does not have a value.

Path​Not​Found


[Pure]
public static method PathNotFound → (2)

path in : Path

The path.

type opt : ValidateMessageType = ValidateMessageType.Warning

The message type.

returns → ValidateMessage

The message object.

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

Protected / Constructors

Validate​Message


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.