Skip to content

Commit

Permalink
Catch exception on attribute level
Browse files Browse the repository at this point in the history
  • Loading branch information
zbynek committed Feb 5, 2020
1 parent 7535b70 commit 2316a81
Showing 1 changed file with 7 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -103,8 +103,13 @@ private static String generateAttrHelp(DescribableParameter param) throws Except
if (help != null && !help.equals("")) {
attrHelp.append(helpify(help)).append("\n");
}
ParameterType type = param.getType();
attrHelp.append("<ul>").append(describeType(type)).append("</ul>");
try {
String typeDesc = describeType(param.getType());
attrHelp.append("<ul>").append(typeDesc).append("</ul>");
} catch (RuntimeException | Error ex) {
LOG.log(Level.WARNING, "Restricted description of attribute "
+ param.getName(), ex);
}
return attrHelp.toString();
}

Expand Down

0 comments on commit 2316a81

Please sign in to comment.