Skip to content

Commit

Permalink
Merge pull request #7 from BlueMedora/exception-catchall
Browse files Browse the repository at this point in the history
Catch all exceptions
  • Loading branch information
xino12 authored Sep 10, 2018
2 parents 3dd89fb + 282c9b6 commit 25bb693
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/org/newrelic/nrjmx/JMXFetcher.java
Original file line number Diff line number Diff line change
Expand Up @@ -101,8 +101,8 @@ public void queryAttributes(ObjectInstance instance) throws QueryError {

try {
value = connection.getAttribute(objectName, attrName);
} catch (AttributeNotFoundException | InstanceNotFoundException | MBeanException | ReflectionException | IOException | RuntimeMBeanException | RuntimeOperationsException e) {
logger.warning("Can't get attribute " + attrName + " for bean " + objectName.toString());
} catch (Exception e) {
logger.warning("Can't get attribute " + attrName + " for bean " + objectName.toString() + ": " + e.getMessage());
continue;
}

Expand Down

0 comments on commit 25bb693

Please sign in to comment.