message = t.getLocalizedMessage();
if(message==null) {
message = t.getMessage() == null ? "" : t.getMessage(); //$NON-NLS-1$
}
MultiStatus multiStatus =
new MultiStatus(EclipseCommonPlugin.PLUGIN_ID,
Status.ERROR, multi, message, t);
try {
title = getErrorTitle(t);
} catch (Throwable anotherT) {
multiStatus.add(new Status(Status.ERROR,
EclipseCommonPlugin.PLUGIN_ID, Status.ERROR,
createStringStackTrace(anotherT), anotherT));
title = FALLBACK_GENERIC_ERROR_TITLE;
}
try {
message = getErrorMessage(t);
} catch (Throwable anotherT) {
multiStatus.add(new Status(Status.ERROR,
EclipseCommonPlugin.PLUGIN_ID, Status.ERROR,
createStringStackTrace(anotherT), anotherT));
message = FALLBACK_GENERIC_ERROR_MESSAGE;
}