Author: rwesten
Date: Tue Jun 18 04:16:23 2013
New Revision: 1494021
URL: http://svn.apache.org/r1494021
Log:
Minor: added status message to RuntimeException thrown on IOExceptions while
writing the HTTP response to the OutputStream
Modified:
stanbol/trunk/commons/web/viewable-writer/src/main/java/org/apache/stanbol/commons/viewable/writer/impl/ViewableWriter.java
Modified:
stanbol/trunk/commons/web/viewable-writer/src/main/java/org/apache/stanbol/commons/viewable/writer/impl/ViewableWriter.java
URL:
http://svn.apache.org/viewvc/stanbol/trunk/commons/web/viewable-writer/src/main/java/org/apache/stanbol/commons/viewable/writer/impl/ViewableWriter.java?rev=1494021&r1=1494020&r2=1494021&view=diff
==============================================================================
---
stanbol/trunk/commons/web/viewable-writer/src/main/java/org/apache/stanbol/commons/viewable/writer/impl/ViewableWriter.java
(original)
+++
stanbol/trunk/commons/web/viewable-writer/src/main/java/org/apache/stanbol/commons/viewable/writer/impl/ViewableWriter.java
Tue Jun 18 04:16:23 2013
@@ -90,7 +90,9 @@ public class ViewableWriter implements M
freemarker.getTemplate(templatePath).process(pojo, out);
out.flush();
} catch (IOException e) {
- throw new RuntimeException(e);
+ throw new RuntimeException("IOException while processing Template
'"
+ + templatePath + "' with Object '"+pojo+"' (class: "
+ + pojo != null ? pojo.getClass().getName() : null + ")!",e);
} catch (TemplateException e) {
throw new RuntimeException(e);
}