((ERXValidationException) exception).setContext(context);
}
log.info("Validation Exception: " + exception + exception.getMessage());
editingContext.revert();
String errorMessage = ERXLocalizer.currentLocalizer().localizedTemplateStringForKeyWithObject("CouldNotSave", exception);
ErrorPageInterface epf = D2W.factory().errorPage(sender.session());
if (epf instanceof ERDErrorPageInterface) {
((ERDErrorPageInterface) epf).setException(exception);
}
epf.setMessage(errorMessage);
epf.setNextPage(followPage(sender));
return (WOComponent) epf;
}
}
return followPage(sender);
}