Author: thorsten
Date: Tue Sep 30 06:14:05 2008
New Revision: 700450
URL: http://svn.apache.org/viewvc?rev=700450&view=rev
Log:
Fixing spaces in the exception messages
Modified:
forrest/branches/dispatcher_rewrite/plugins/org.apache.forrest.plugin.internal.dispatcher/src/java/org/apache/forrest/dispatcher/impl/XSLContract.java
Modified:
forrest/branches/dispatcher_rewrite/plugins/org.apache.forrest.plugin.internal.dispatcher/src/java/org/apache/forrest/dispatcher/impl/XSLContract.java
URL:
http://svn.apache.org/viewvc/forrest/branches/dispatcher_rewrite/plugins/org.apache.forrest.plugin.internal.dispatcher/src/java/org/apache/forrest/dispatcher/impl/XSLContract.java?rev=700450&r1=700449&r2=700450&view=diff
==============================================================================
---
forrest/branches/dispatcher_rewrite/plugins/org.apache.forrest.plugin.internal.dispatcher/src/java/org/apache/forrest/dispatcher/impl/XSLContract.java
(original)
+++
forrest/branches/dispatcher_rewrite/plugins/org.apache.forrest.plugin.internal.dispatcher/src/java/org/apache/forrest/dispatcher/impl/XSLContract.java
Tue Sep 30 06:14:05 2008
@@ -52,8 +52,8 @@
HashMap<String, ?> properties) throws DispatcherException {
if (xslSource == null || helper == null) {
throw new DispatcherException("Contract \"" + name
- + "\" has produced an exception"
- + "The xsl source have not been initialize from stream"
+ + "\" has produced an exception. "
+ + "The xsl source have not been initialize from stream "
+ "the contract. We cannot proceed without this.");
}
try {
@@ -63,12 +63,12 @@
helper.prepareTransformation(xslSource, allowXmlProperties, properties);
} catch (TransformerConfigurationException e) {
throw new DispatcherException("Contract \"" + name
- + "\" has produced an exception"
- + "Could not setup the transformer for"
+ + "\" has produced an exception. "
+ + "Could not setup the transformer for "
+ "the contract. We cannot proceed without this.", e);
} catch (Exception e) {
throw new DispatcherException("Contract \"" + name
- + "\" has produced an exception."
+ + "\" has produced an exception. "
+ "We cannot proceed without this.", e);
}
/*
@@ -80,8 +80,8 @@
dataStream = helper.createEmptyXml();
} catch (XMLStreamException e) {
throw new DispatcherException("Contract \"" + name
- + "\" has produced an exception"
- + "Could not create an empty xml document for"
+ + "\" has produced an exception. "
+ + "Could not create an empty xml document for "
+ "the contract. We cannot proceed without this.", e);
}
}
@@ -92,8 +92,8 @@
helper.transform(dataStream,streamResult);
} catch (TransformerException e) {
throw new DispatcherException("Contract \"" + name
- + "\" has produced an exception"
- + "Could not invoke the transformation for"
+ + "\" has produced an exception. "
+ + "Could not invoke the transformation for "
+ "the contract. We cannot proceed without this.", e);
}
log.debug(out.toString());