You are viewing a plain text version of this content. The canonical link for it is here.
Posted to slide-dev@jakarta.apache.org by re...@apache.org on 2001/04/13 19:29:15 UTC

cvs commit: jakarta-slide/src/stores/slidestore/reference JDBCContentStore.java

remm        01/04/13 10:29:15

  Modified:    src/stores/slidestore/reference JDBCContentStore.java
  Log:
  - The store will now print out stack traces when an exception occurs.
  
  Revision  Changes    Path
  1.4       +8 -4      jakarta-slide/src/stores/slidestore/reference/JDBCContentStore.java
  
  Index: JDBCContentStore.java
  ===================================================================
  RCS file: /home/cvs/jakarta-slide/src/stores/slidestore/reference/JDBCContentStore.java,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- JDBCContentStore.java	2001/03/24 05:10:04	1.3
  +++ JDBCContentStore.java	2001/04/13 17:29:15	1.4
  @@ -1,7 +1,7 @@
   /*
  - * $Header: /home/cvs/jakarta-slide/src/stores/slidestore/reference/JDBCContentStore.java,v 1.3 2001/03/24 05:10:04 remm Exp $
  - * $Revision: 1.3 $
  - * $Date: 2001/03/24 05:10:04 $
  + * $Header: /home/cvs/jakarta-slide/src/stores/slidestore/reference/JDBCContentStore.java,v 1.4 2001/04/13 17:29:15 remm Exp $
  + * $Revision: 1.4 $
  + * $Date: 2001/04/13 17:29:15 $
    *
    * ====================================================================
    *
  @@ -89,7 +89,7 @@
    * JDBC 2.0 compliant implementation of ContentStore.
    *
    * @author <a href="mailto:remm@apache.org">Remy Maucherat</a>
  - * @version $Revision: 1.3 $
  + * @version $Revision: 1.4 $
    */
   public class JDBCContentStore extends AbstractSimpleService
       implements ContentStore {
  @@ -395,6 +395,7 @@
               // FIXME ?
               
           } catch (SQLException e) {
  +            e.printStackTrace();
               throw new ServiceAccessException(this, e.getMessage());
           } catch (Exception e) {
               e.printStackTrace();
  @@ -445,8 +446,10 @@
                            revisionContent);
               
           } catch (SQLException e) {
  +            e.printStackTrace();
               throw new ServiceAccessException(this, e.getMessage());
           } catch (IOException e) {
  +            e.printStackTrace();
               throw new ServiceAccessException(this, e.getMessage());
           } catch(RevisionAlreadyExistException e) {
               throw e; // we do NOT want this caught by next clause.
  @@ -503,6 +506,7 @@
               e.printStackTrace();
               throw new ServiceAccessException(this, e.getMessage());
           } catch (IOException e) {
  +            e.printStackTrace();
               throw new ServiceAccessException(this, e.getMessage());
           } catch(RevisionNotFoundException e) {
               throw e; // we do NOT want this caught by next clause.