Inspectopedia
 
2024.3

Exception constructor called without arguments

Warning
New
Last modified: 03 December 2024

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: