[jboss-cvs] jboss-seam/src/main/org/jboss/seam/navigation ...

Peter Muir peter at bleepbleep.org.uk
Tue Sep 4 10:28:57 EDT 2007


  User: pmuir   
  Date: 07/09/04 10:28:57

  Modified:    src/main/org/jboss/seam/navigation  SafeActions.java
  Log:
  Even better exception messages
  
  Revision  Changes    Path
  1.6       +2 -2      jboss-seam/src/main/org/jboss/seam/navigation/SafeActions.java
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: SafeActions.java
  ===================================================================
  RCS file: /cvsroot/jboss/jboss-seam/src/main/org/jboss/seam/navigation/SafeActions.java,v
  retrieving revision 1.5
  retrieving revision 1.6
  diff -u -b -r1.5 -r1.6
  --- SafeActions.java	4 Sep 2007 14:26:21 -0000	1.5
  +++ SafeActions.java	4 Sep 2007 14:28:57 -0000	1.6
  @@ -64,7 +64,7 @@
         String action = "\"#{" + id.substring(loc+1) + "}\"";
         
         InputStream is = FacesContext.getCurrentInstance().getExternalContext().getResourceAsStream(viewId);
  -      if (is==null) throw new IllegalStateException("Unable to read view " + "/" + viewId);
  +      if (is==null) throw new IllegalStateException("Unable to read view " + "/" + viewId + " to execute action " + action);
         BufferedReader reader = new BufferedReader( new InputStreamReader(is) );
         try
         {
  @@ -80,7 +80,7 @@
         }
         catch (IOException ioe)
         {
  -         throw new RuntimeException("Error parsing view " + "/" + viewId, ioe);
  +         throw new RuntimeException("Error parsing view " + "/" + viewId + " to execute action " + action, ioe);
         }
         finally
         {
  
  
  



More information about the jboss-cvs-commits mailing list