return error.length() > 0 ? error : null;
// So much silly questions in the list about this issue.
} catch(LinkageError e) {
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);