Throw CkanValidationError("Invalid <name>: <reason>") when problem finds
something wrong with value; otherwise return value unchanged. A method that
returns a promise calls this inside its async body, so a bad input rejects
rather than throwing synchronously.
Throw
CkanValidationError("Invalid <name>: <reason>")whenproblemfinds something wrong withvalue; otherwise returnvalueunchanged. A method that returns a promise calls this inside its async body, so a bad input rejects rather than throwing synchronously.