We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The following code block should be considered non-compliant:
try { } catch (e: IllegalStateException) { var message = e.message // e is swallowed throw IllegalArgumentException(message) } catch (f: Exception) { var message = f.toString() // f is swallowed throw Exception(IllegalArgumentException(message)) }
Code passes the SwalowedException check
Use the sample code provided, or similar where exception message is stored and passed into new exception.
Trying to prevent instances of swallowed exceptions
The text was updated successfully, but these errors were encountered:
Successfully merging a pull request may close this issue.
Expected Behavior
The following code block should be considered non-compliant:
Observed Behavior
Code passes the SwalowedException check
Steps to Reproduce
Use the sample code provided, or similar where exception message is stored and passed into new exception.
Context
Trying to prevent instances of swallowed exceptions
Your Environment
The text was updated successfully, but these errors were encountered: