Throw OpenKaValidationError("Invalid <name>: <reason>") when problem finds
fault with value. A function that returns a promise calls this inside its
async body, so a rejected input becomes a rejection rather than a synchronous
throw; a constructor lets it throw.
Throw
OpenKaValidationError("Invalid <name>: <reason>")whenproblemfinds fault withvalue. A function that returns a promise calls this inside its async body, so a rejected input becomes a rejection rather than a synchronous throw; a constructor lets it throw.