Include failure-capture information in detail messages
es.uniovi.reflection.analyses.bloch.9.63
This rule detects instantiations of exceptions in which the failure-capture information that contributed to its cause is not correctly separated to be easily stored and accessed. To do so, the rule detects constructor calls from java.lang.Exception subtypes, where just a String (or a String and a Throwable) is passed as an argument by concatenating different data. Then, the rule analyzes whether the class implements an appropriate constructor with the right parameters to separate and store the failure-capture information concatenated. If so, we recommend using the existing constructor to pass (and store) the arguments without concatenation. Otherwise, it is recommended to implement such a constructor and use it.