Menu

#69 LEST error on usage of Guava Throwables.propagate

5.0.1
closed-fixed
None
3
2014-08-17
2014-01-13
No

With my update to 5.0.1, I'm seeing the LEST error being noted at locations that I'm using the Guava Throwables.propagate() method (http://docs.guava-libraries.googlecode.com/git/javadoc/com/google/common/base/Throwables.html). In looking at the guave source, it seems to implement as promised, either throwing the original exception or wrapping as a new RuntimeException constructed with the exception provided, so I don't think that it is loosing the history of the earlier caught exception and the LEST error code indicates.

here is the specific code snippet that is being flagged (foo is a string)
try {
foo = FileUtils.readFileToString(FOO_FILE);
} catch (IOException e) {
throw Throwables.propagate(e);
}

Discussion

  • Dave Brosius

    Dave Brosius - 2014-01-13
    • status: open --> closed-fixed
    • assigned_to: Dave Brosius
     

Log in to post a comment.