stefano     00/08/21 10:54:02

  Modified:    src/org/apache/cocoon/components/store Tag: xml-cocoon2
                        FilesystemStore.java
  Log:
  fixed error handling
  
  Revision  Changes    Path
  No                   revision
  
  
  No                   revision
  
  
  1.1.2.4   +2 -2      
xml-cocoon/src/org/apache/cocoon/components/store/Attic/FilesystemStore.java
  
  Index: FilesystemStore.java
  ===================================================================
  RCS file: 
/home/cvs/xml-cocoon/src/org/apache/cocoon/components/store/Attic/FilesystemStore.java,v
  retrieving revision 1.1.2.3
  retrieving revision 1.1.2.4
  diff -u -r1.1.2.3 -r1.1.2.4
  --- FilesystemStore.java      2000/07/29 18:30:33     1.1.2.3
  +++ FilesystemStore.java      2000/08/21 17:54:02     1.1.2.4
  @@ -89,7 +89,7 @@
         if (value == null) { /* Directory */
           if (file.exists()) {
             if (!file.delete()) { /* FAILURE */
  -           System.err.println("File cannot be deleted: " + file.toString());
  +           // System.err.println("File cannot be deleted: " + 
file.toString());
              return;
             }
           }
  @@ -101,7 +101,7 @@
           IOUtils.serializeObject(file, value);
         }
       } catch (Exception e) { /* FAILURE */
  -      e.printStackTrace();
  +      throw new RuntimeException(e.getMessage());
       }
     }
   
  
  
  

Reply via email to