It is said that ExceptionParser is an interface and has only 1 method: getDescription(String threadName, Throwable t) .
So, to get the most relevant description of the exception, you can create a new class that implements this interface and overrides getDescription() .
Something like that:
public class MyParser implements ExceptionParser{ @Override public String getDescription(String threadName, Throwable t){ return threadName+", "+t.get..... } }
(Note that I'm not sure if the return type of getDescription() is String . You must specify the appropriate return type)
Andy res
source share