Issue 401 - use default exception handling for ExportRows command instead of JSON response

git-svn-id: http://google-refine.googlecode.com/svn/trunk@2093 7d457c2a-affb-35e4-300a-418c747d4874
This commit is contained in:
Tom Morris 2011-06-07 23:52:23 +00:00
parent 2cd3ae03d0
commit 6a14049652

View File

@ -97,10 +97,12 @@ public class ExportRowsCommand extends Command {
// } else if (exporter instanceof UrlExporter) {
// ((UrlExporter) exporter).export(project, options, engine);
} else {
// TODO: Should this use ServletException instead of respondException?
respondException(response, new RuntimeException("Unknown exporter type"));
}
} catch (Exception e) {
respondException(response, e);
// Use generic error handling rather than our JSON handling
throw new ServletException(e);
} finally {
ProjectManager.singleton.setBusy(false);
}