]> source.dussan.org Git - vaadin-framework.git/commitdiff
Include original exception when throwing PaintException
authorLeif Åstrand <leif@vaadin.com>
Mon, 14 May 2012 10:22:18 +0000 (13:22 +0300)
committerLeif Åstrand <leif@vaadin.com>
Mon, 14 May 2012 10:22:18 +0000 (13:22 +0300)
src/com/vaadin/terminal/PaintException.java
src/com/vaadin/terminal/gwt/server/AbstractCommunicationManager.java

index 02b138035ccb5207c3d5ea03dce5bc9272ffb878..68f689b7f1d29b33457b14ef29b042615c25551e 100644 (file)
@@ -29,6 +29,19 @@ public class PaintException extends IOException implements Serializable {
         super(msg);
     }
 
+    /**
+     * Constructs an instance of <code>PaintExeception</code> with the specified
+     * detail message and cause.
+     * 
+     * @param msg
+     *            the detail message.
+     * @param cause
+     *            the cause
+     */
+    public PaintException(String msg, Throwable cause) {
+        super(msg, cause);
+    }
+
     /**
      * Constructs an instance of <code>PaintExeception</code> from IOException.
      * 
index 8f942d9aeeaaff33b204edc2a245a82a018e92f2..c08d70aa37215d2886639ffcd409b43af57b45cd 100644 (file)
@@ -855,7 +855,7 @@ public abstract class AbstractCommunicationManager implements Serializable {
                             "Failed to serialize shared state for connector "
                                     + connector.getClass().getName() + " ("
                                     + connector.getConnectorId() + "): "
-                                    + e.getMessage());
+                                    + e.getMessage(), e);
                 }
             }
         }
@@ -876,7 +876,7 @@ public abstract class AbstractCommunicationManager implements Serializable {
                 throw new PaintException(
                         "Failed to send connector type for connector "
                                 + connector.getConnectorId() + ": "
-                                + e.getMessage());
+                                + e.getMessage(), e);
             }
         }
         outWriter.print("\"types\":");
@@ -910,7 +910,7 @@ public abstract class AbstractCommunicationManager implements Serializable {
                     throw new PaintException(
                             "Failed to send hierarchy information about "
                                     + parentConnectorId + " to the client: "
-                                    + e.getMessage());
+                                    + e.getMessage(), e);
                 }
             }
         }
@@ -961,7 +961,7 @@ public abstract class AbstractCommunicationManager implements Serializable {
                                 + invocation.getConnector().getConnectorId()
                                 + " method " + invocation.getInterfaceName()
                                 + "." + invocation.getMethodName() + ": "
-                                + e.getMessage());
+                                + e.getMessage(), e);
             }
 
         }