SWTException swte = (SWTException) e;
errorMessage = swte.getMessage();
if (swte.throwable != null)
errorMessage += ":\n" + swte.throwable.toString();
} else if (e instanceof SWTError) {
SWTError swte = (SWTError) e;
errorMessage = swte.getMessage();
if (swte.throwable != null)
errorMessage += ":\n" + swte.throwable.toString();
} else
errorMessage = e.toString();
box.setMessage(message + errorMessage);