You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@myfaces.apache.org by mm...@apache.org on 2007/08/08 08:17:52 UTC

svn commit: r563765 - /myfaces/core/branches/1_2_1/api/src/main/java/javax/faces/component/UIComponentBase.java

Author: mmarinschek
Date: Tue Aug  7 23:17:51 2007
New Revision: 563765

URL: http://svn.apache.org/viewvc?view=rev&rev=563765
Log:
https://issues.apache.org/jira/browse/MYFACES-1685: more error-handling - making sure that all lifecycle methods throw a Faces-Exception including the component path so that the error-page has something to show off

Modified:
    myfaces/core/branches/1_2_1/api/src/main/java/javax/faces/component/UIComponentBase.java

Modified: myfaces/core/branches/1_2_1/api/src/main/java/javax/faces/component/UIComponentBase.java
URL: http://svn.apache.org/viewvc/myfaces/core/branches/1_2_1/api/src/main/java/javax/faces/component/UIComponentBase.java?view=diff&rev=563765&r1=563764&r2=563765
==============================================================================
--- myfaces/core/branches/1_2_1/api/src/main/java/javax/faces/component/UIComponentBase.java (original)
+++ myfaces/core/branches/1_2_1/api/src/main/java/javax/faces/component/UIComponentBase.java Tue Aug  7 23:17:51 2007
@@ -491,7 +491,7 @@
             }
         }
         catch(Exception ex) {
-            throw new FacesException("Exception while calling broadcast on component : "+getPathToComponent(this));
+            throw new FacesException("Exception while calling broadcast on component : "+getPathToComponent(this), ex);
         }
     }
 
@@ -512,7 +512,7 @@
             }
         }
         catch(Exception ex) {
-            throw new FacesException("Exception while decoding component : "+getPathToComponent(this));
+            throw new FacesException("Exception while decoding component : "+getPathToComponent(this), ex);
         }
     }
 
@@ -528,7 +528,7 @@
                 renderer.encodeBegin(context, this);
             }
         } catch (Exception ex) {
-            throw new FacesException("Exception while calling encodeBegin on component : "+getPathToComponent(this));
+            throw new FacesException("Exception while calling encodeBegin on component : "+getPathToComponent(this), ex);
         }
     }
 
@@ -556,7 +556,7 @@
                 renderer.encodeEnd(context, this);
             }
         } catch (Exception ex) {
-            throw new FacesException("Exception while calling encodeEnd on component : "+getPathToComponent(this));
+            throw new FacesException("Exception while calling encodeEnd on component : "+getPathToComponent(this), ex);
         }
     }
 
@@ -727,7 +727,7 @@
         try {
             savedState = saveState(context);
         } catch(Exception ex) {
-            throw new FacesException("Exception while saving state of component : "+getPathToComponent(this));
+            throw new FacesException("Exception while saving state of component : "+getPathToComponent(this), ex);
         }
 
         return new Object[] { savedState, facetMap, childrenList };
@@ -780,7 +780,7 @@
         try {
             restoreState(context, myState);
         } catch(Exception ex) {
-            throw new FacesException("Exception while restoring state of component : "+getPathToComponent(this));
+            throw new FacesException("Exception while restoring state of component : "+getPathToComponent(this), ex);
         }
     }