diff options
author | Leif Åstrand <leif@vaadin.com> | 2012-05-14 13:22:18 +0300 |
---|---|---|
committer | Leif Åstrand <leif@vaadin.com> | 2012-05-14 13:22:18 +0300 |
commit | de134d439dc79bc56be05fae7e8cb6255b322ba6 (patch) | |
tree | 6e494460f2a372b883752267799cf3b014de1fdc | |
parent | 71e30eb3ef4e3b57cdbfe51d65a3c76181554899 (diff) | |
download | vaadin-framework-de134d439dc79bc56be05fae7e8cb6255b322ba6.tar.gz vaadin-framework-de134d439dc79bc56be05fae7e8cb6255b322ba6.zip |
Include original exception when throwing PaintException
-rw-r--r-- | src/com/vaadin/terminal/PaintException.java | 13 | ||||
-rw-r--r-- | src/com/vaadin/terminal/gwt/server/AbstractCommunicationManager.java | 8 |
2 files changed, 17 insertions, 4 deletions
diff --git a/src/com/vaadin/terminal/PaintException.java b/src/com/vaadin/terminal/PaintException.java index 02b138035c..68f689b7f1 100644 --- a/src/com/vaadin/terminal/PaintException.java +++ b/src/com/vaadin/terminal/PaintException.java @@ -30,6 +30,19 @@ public class PaintException extends IOException implements Serializable { } /** + * 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. * * @param exception diff --git a/src/com/vaadin/terminal/gwt/server/AbstractCommunicationManager.java b/src/com/vaadin/terminal/gwt/server/AbstractCommunicationManager.java index 8f942d9aee..c08d70aa37 100644 --- a/src/com/vaadin/terminal/gwt/server/AbstractCommunicationManager.java +++ b/src/com/vaadin/terminal/gwt/server/AbstractCommunicationManager.java @@ -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); } } |