}
logMessage = formatMessage(request, logMessage,
ce.getExtraInformation());
errorMessage.put(AJAX_CLOSE_PAGE_HANDLER_EXCEPTION, logMessage);
} else if (e instanceof CapSessioniExpireException) {
CapSessioniExpireException ce = (CapSessioniExpireException) e;
logMessage = ce.getMessage();
if (!CapString.isEmpty(ce.getMessageKey())) {
logMessage = ce.getMessageKey();
}
logMessage = formatMessage(request, logMessage,
ce.getExtraInformation());
errorMessage.put(AJAX_SESSION_EXPIRE_EXCEPTION, logMessage);
} else if (e instanceof CapException) {
CapException ce = (CapException) e;
logMessage = new StringBuffer(ce.getCauseClass().getName())
.append(":").append(e.getMessage()).toString();
errorMessage.put(AJAX_HANDLER_EXCEPTION, logMessage);
} else {
logMessage = e.getLocalizedMessage();
errorMessage.put(AJAX_HANDLER_EXCEPTION, logMessage);