[Minor] Wrapping exception in FromFlatJsonVisitor
This commit is contained in:
parent
1470540ac7
commit
a88a098bf3
|
@ -93,7 +93,11 @@ public class FromFlatJsonVisitor {
|
|||
}
|
||||
|
||||
Parameter<?> parameter = parameterBag.getParameter(paramId);
|
||||
parameter.setValueFromString(jsonElement.getAsString());
|
||||
try {
|
||||
parameter.setValueFromString(jsonElement.getAsString());
|
||||
} catch (Exception e) {
|
||||
throw new IllegalStateException("Failed to set parameter " + parameter.getLocator(), e);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue