Exception constructor called without arguments
Reports creation of a exception instance without any arguments specified.
When an exception is constructed without any arguments, it contains no information about the problem that occurred, which makes debugging needlessly hard.
Example:
throw new IOException(); // warning: exception without arguments
Inspection Details | |
---|---|
Available in: | IntelliJ IDEA 2023.3, Qodana for JVM 2023.3 |
Plugin: | Java, 233.SNAPSHOT |
Last modified: 13 July 2023