| 1 5 package com.nightlabs.rcp.exceptionhandler.dialog; 6 7 import org.apache.log4j.Logger; 8 import org.eclipse.ui.PlatformUI; 9 10 import com.nightlabs.rcp.exceptionhandler.IExceptionHandler; 11 12 15 public class ThrowableHandler implements IExceptionHandler { 16 public static final Logger LOGGER = Logger.getLogger(ThrowableHandler.class); 17 18 21 public void handleException(Thread thread, Throwable exception, Throwable triggerException) { 22 LOGGER.error("handleException("+thread+")", exception); 24 ThrowableHandlerDialog dialog = new ThrowableHandlerDialog(PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell(),exception); 26 dialog.open(); 27 } 30 31 } 32 | Popular Tags |