You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@myfaces.apache.org by lo...@apache.org on 2017/09/28 13:01:36 UTC

[myfaces-tobago] branch master updated: demo error handling: might be a Throwable

This is an automated email from the ASF dual-hosted git repository.

lofwyr pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/myfaces-tobago.git


The following commit(s) were added to refs/heads/master by this push:
     new c7f0278  demo error handling: might be a Throwable
c7f0278 is described below

commit c7f0278a252fd150754a23f585af0f93371094ea
Author: Udo Schnurpfeil <lo...@apache.org>
AuthorDate: Thu Sep 28 15:01:31 2017 +0200

    demo error handling: might be a Throwable
---
 .../org/apache/myfaces/tobago/example/demo/ExceptionController.java     | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tobago-example/tobago-example-demo/src/main/java/org/apache/myfaces/tobago/example/demo/ExceptionController.java b/tobago-example/tobago-example-demo/src/main/java/org/apache/myfaces/tobago/example/demo/ExceptionController.java
index b99b737..50febdb 100644
--- a/tobago-example/tobago-example-demo/src/main/java/org/apache/myfaces/tobago/example/demo/ExceptionController.java
+++ b/tobago-example/tobago-example-demo/src/main/java/org/apache/myfaces/tobago/example/demo/ExceptionController.java
@@ -31,7 +31,7 @@ import java.io.StringWriter;
 public class ExceptionController implements Serializable {
 
   public String getStackTrace() {
-    Exception exception = (Exception) FacesContext.getCurrentInstance().getExternalContext()
+    Throwable exception = (Throwable) FacesContext.getCurrentInstance().getExternalContext()
             .getRequestMap().get("javax.servlet.error.exception");
     StringWriter stringWriter = new StringWriter();
     PrintWriter printWriter = new PrintWriter(stringWriter);

-- 
To stop receiving notification emails like this one, please contact
['"commits@myfaces.apache.org" <co...@myfaces.apache.org>'].