Added cause when throwing a ServletException
authorIván Perdomo <ivan.perdomo@openbravo.com>
Fri, 05 Jun 2009 09:23:58 +0200
changeset 3967 0dd58cb2ec80
parent 3966 5251395c3c13
child 3968 a166a4fa5a74
child 4545 b568c844200f
Added cause when throwing a ServletException
src/org/openbravo/base/secureApp/HttpSecureAppServlet.java
--- a/src/org/openbravo/base/secureApp/HttpSecureAppServlet.java	Fri Jun 05 09:20:10 2009 +0200
+++ b/src/org/openbravo/base/secureApp/HttpSecureAppServlet.java	Fri Jun 05 09:23:58 2009 +0200
@@ -1053,7 +1053,7 @@
             + (reportId) + "." + strOutputType + " : " + ioex.getMessage());
       }
     } catch (final Exception e) {
-      throw new ServletException(e.getMessage());
+      throw new ServletException(e.getMessage(), e);
     } finally {
       try {
         os.close();