At the moment my exceptions are logging text and stack-trace:
throw new RequestValidationException("test exception", parameters, e);
I want to Collect all parameters for the throws exception in all methods.
HashMap<String, String> parameters = new HashMap<String, String>();
parameters.put("testparam", message.toString());
throw new RequestValidationException("test exception", parameters, e);
Now i'm using a hashmap. I have to look at every method and check if it's using a parameter. This will cost me days. There are like thousands of exceptions in the code, is there a simple way to show the values?