Java
Exception constructor called without arguments
Warning
New
Last modified: 03 December 2024Reports 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
- By ID
Can be used to locate inspection in e.g. Qodana configuration files, where you can quickly enable or disable it, or adjust its settings.
NewExceptionWithoutArguments
Here you can find the description of settings available for the Exception constructor called without arguments inspection, and the reference of their default values.
Inspection Details | |
---|---|
By default bundled with: | |
Can be installed with plugin: | Java, 243.23126 |
Thanks for your feedback!
Was this page helpful?