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 current implementation is limited to a list of exceptions and does not handle exceptions that are defined by the project.
The problem is that you can do
public class MyException extends Exception { public MyException() { super("the message is here"); } }
So the corresponding throw statement would look like it has no message
throw
throw new MyException();
To set the message one must call a predefined constructor of the parent class, so it should be possible to detect if the exception has a message.
EXCEPTION_WITHOUT_MESSAGE
<code>
The text was updated successfully, but these errors were encountered:
enable exception message check for any exception Feuermagier#434
e66e4a1
Successfully merging a pull request may close this issue.
Summary
The current implementation is limited to a list of exceptions and does not handle exceptions that are defined by the project.
The problem is that you can do
So the corresponding
throw
statement would look like it has no messageTo set the message one must call a predefined constructor of the parent class, so it should be possible to detect if the exception has a message.
Lint Name
EXCEPTION_WITHOUT_MESSAGE
Reproducer
<code>
The text was updated successfully, but these errors were encountered: