args[0] = new Long(se.getPermittedSize());
args[1] = new Long(se.getActualSize());
setError(getMessage(key, args));
} else if (fue instanceof FileSizeLimitExceededException) {
FileSizeLimitExceededException fse =
(FileSizeLimitExceededException) fue;
key = "file-size-limit-exceeded-error";
// Parse the FileField name from the message
String msg = fue.getMessage();
int start = 10;
int end = msg.indexOf(' ', start);
String fieldName = fue.getMessage().substring(start, end);
args = new Object[3];
args[0] = ClickUtils.toLabel(fieldName);
args[1] = new Long(fse.getPermittedSize());
args[2] = new Long(fse.getActualSize());
setError(getMessage(key, args));
}
}