logger.error("UPLOAD-SERVLET (" + request.getSession().getId() + ") Exception: " + e.getMessage() + "\n" + stackTraceToString(e));
RuntimeException ex = new UploadActionException(getMessage("restricted", e.getMessage()), e);
listener.setException(ex);
throw ex;
} catch (SizeLimitExceededException e) {
RuntimeException ex = new UploadSizeLimitException(e.getPermittedSize(), e.getActualSize());
listener.setException(ex);
throw ex;
} catch (UploadSizeLimitException e) {
listener.setException(e);
throw e;