// Wrap exception messages in ActionError
// If chained, descend down chain
// appending messages to StringBuffer
StringBuffer sb = new StringBuffer();
if (exception instanceof BaseException) {
BaseException e = (BaseException) exception;
e.getMessage(sb);
}
else {
sb.append(ConvertUtils.LINE_FEED);
sb.append(ERROR);
sb.append(exception.toString());