Skip to content

Commit

Permalink
log error thrown in parameter setter/getter at finest level
Browse files Browse the repository at this point in the history
  • Loading branch information
notthetup committed Aug 29, 2024
1 parent 0c47203 commit 84b7782
Showing 1 changed file with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@ protected ParameterRsp processParameterReq(ParameterReq msg, ParameterRsp rsp) {
Object current = null;
try {
if (fldName.equals("type")) current = agent.getClass().getName(); // special automatic parameter
else if (ndx < 0) current = MethodUtils.invokeMethod(agent, "get" + methodNameFragment);
else if (ndx < 0) current = MethodUtils.invokeMethod(agent, "get" + methodNameFragment);
else current = MethodUtils.invokeMethod(agent, "get" + methodNameFragment, ndx);
} catch (NoSuchMethodException ex) {
current = getParam(e.param, ndx);
Expand All @@ -221,8 +221,8 @@ protected ParameterRsp processParameterReq(ParameterReq msg, ParameterRsp rsp) {
}
if (evalue == null) {
// get request
if (fldName.equals("type")) rsp.set(e.param, current, true); // special automatic parameter
else rsp.set(e.param, current, isReadOnly(e.param, ndx));
if (fldName.equals("type")) rsp.set(e.param, current, true); // special automatic parameter
else rsp.set(e.param, current, isReadOnly(e.param, ndx));
} else {
// set request
try {
Expand Down Expand Up @@ -263,6 +263,8 @@ protected ParameterRsp processParameterReq(ParameterReq msg, ParameterRsp rsp) {
}
}
}
} catch (InvocationTargetException ex){
log.fine ("Error thrown while setting parameter: " + ex.getCause().getMessage());
} catch (Exception ex) {
// do nothing
}
Expand Down

0 comments on commit 84b7782

Please sign in to comment.