More details in messages by traversing exception chain.
[utils] / crawler / basic / src / org / wamblee / crawler / AbstractPageRequest.java
index 432ebb4ac4f72010f30bd5371a15cce2d48e4f42..7607f764b3c20999842d14089e22cc52ee61ee40 100644 (file)
@@ -168,7 +168,7 @@ public abstract class AbstractPageRequest implements PageRequest {
             LOG.debug("Transformed result is \n" + os.toString());
             return transformed;
         } catch (TransformerConfigurationException e) {
-            throw new RuntimeException(e.getMessage(), e);
+            throw new TransformerException("Transformer configuration problem", e);
         } finally {
             // Release the connection.
             aMethod.releaseConnection();