Cases where InstantiationException is created with no detail message, we don't see true error.
We also do not cause full cause in stacktrace.
Example case of NoClassDefFoundError being thrown during reflection based init of a Class, results in just a basic message of InstantiationException, not showing correct line number of issue or message of true cause.
Add cause to exception.
Cases where InstantiationException is created with no detail message, we don't see true error. We also do not cause full cause in stacktrace.
Example case of NoClassDefFoundError being thrown during reflection based init of a Class, results in just a basic message of InstantiationException, not showing correct line number of issue or message of true cause.