A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/pmd/pmd/issues/1747 below:

[java] PreserveStackTrace false-positive · Issue #1747 · pmd/pmd · GitHub

PMD version 6.13.0.

Rule: PreserveStackTrace

try {
	...
} catch (IOException exception) {
	if (exception.getMessage().contains("foobar")) {
		throw new SomeOtherUserDefinedException("Error", exception);
	}
	throw exception;
}

This code produces a PreserveStackTrace error but it shouldn't according to the documentation of PreserveStackTrace.


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4