Inspectopedia Help

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.


throw new IOException(); // warning: exception without arguments

Inspection Details

Available in:

IntelliJ IDEA 2023.3, Qodana for JVM 2023.3


Java, 233.SNAPSHOT

Last modified: 13 July 2023