// We want to immediately stop trying alternatives when a non-ValidationError occurred, since that means that something broke internally somewhere, and it is not safe to continue executing.
throwunexpectedErrors[0];
}else{
if(errors.length===0){
returnnewValue;
}elseif(errors.length===1){
@ -70,6 +77,7 @@ module.exports = function (alternatives) {