param = valueDef.getType().valueOf(param);
} catch (QuickFixException qfe) {
//
// This means that we have a broken definition.
//
addException(new AuraUnhandledException("Invalid parameter " + valueDef, qfe), State.ERROR, true,
false);
return null;
} catch (IllegalArgumentException iae) {
addException(new AuraUnhandledException("Invalid value for " + valueDef, iae), State.ERROR, false,
false);
return null;
} catch (AuraHandledException lhe) {
addException(lhe, State.ERROR, false, false);
return null;
} catch (Exception e) {
addException(new AuraUnhandledException("Error on parameter " + valueDef, e), State.ERROR, false,
false);
return null;
}
args[i++] = param;
}