/**
* Internal use only.
*/
public void handleError(String errMsg, Throwable t){
logger.log(Level.SEVERE, errMsg, t);
// user should add additional code to handle the error.
stop(); // stop the application
}
How absolute is "Internal use only" constraint? I'd like to assign some thread uncaught error handler to respawn application with stored state. May I use this "Internal use only" method to create new application thread on current thread failing?
Should I explicitly use setDefaultUncaughtExceptionHandler instead?