errorMessage property
String
get
errorMessage
Gets the error message to display when validation fails.
This should provide a clear explanation of the validation requirements.
Example:
if (!validator.isValid(uri)) {
throw FormatException(validator.errorMessage);
}
Implementation
String get errorMessage;