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 options

Here you can find the description of settings available for the Exception constructor called without arguments inspection, and the reference of their default values.

Ignored exceptions


Inspection Details

By default bundled with:

IntelliJ IDEA 2024.1, Qodana for JVM 2024.1,

Can be installed with plugin:

Java, 241.16690

Last modified: 29 April 2024