* @author marcio.endo@objectos.com.br (Marcio Endo)
*/
public class UploadReplier<T> {
public Reply<?> onError(List<Exception> exceptions, String url) {
FormResponseBuilder builder = new FormResponseBuilder();
for (Exception exception : exceptions) {
String message = exception.getMessage();
builder.addMessage(message);
}
builder.redirectTo(url);
return builder.reply();
}