ClassValidationAttributeGetErrorMessage Method

Gets the error message to display if validation failed.

Definition

Namespace: Ookii.CommandLine.Validation
Assembly: Ookii.CommandLine (in Ookii.CommandLine.dll) Version: 4.0.0+bb7ed9a8fdfd1cb21824750a8cf508863ad15086
C#
public virtual string GetErrorMessage(
	CommandLineParser parser
)

Parameters

parser  CommandLineParser
The command line parser that was validated.

Return Value

String
The error message.

Remarks

Override this method in a derived class to provide a custom error message. Otherwise, it will return a generic error message.

See Also