ValidationResult

constructor(successful: Boolean, errorMessage: String = "")

Parameters

successful

Indicates whether the validation was successful (true) or not (false).

errorMessage

A message describing the reason for validation failure, empty if successful.