avalon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From hamm...@apache.org
Subject cvs commit: jakarta-avalon-cornerstone/apps/db/src/java/org/apache/avalon/db/server AbstractDatabaseManager.java
Date Fri, 30 Nov 2001 09:57:51 GMT
hammant     01/11/30 01:57:51

  Modified:    apps/db/src/java/org/apache/avalon/db/server
                        AbstractDatabaseManager.java
  Log:
  Development exceptions now reported more correctly.
  
  Revision  Changes    Path
  1.26      +6 -1      jakarta-avalon-cornerstone/apps/db/src/java/org/apache/avalon/db/server/AbstractDatabaseManager.java
  
  Index: AbstractDatabaseManager.java
  ===================================================================
  RCS file: /home/cvs/jakarta-avalon-cornerstone/apps/db/src/java/org/apache/avalon/db/server/AbstractDatabaseManager.java,v
  retrieving revision 1.25
  retrieving revision 1.26
  diff -u -r1.25 -r1.26
  --- AbstractDatabaseManager.java	2001/11/23 12:06:57	1.25
  +++ AbstractDatabaseManager.java	2001/11/30 09:57:51	1.26
  @@ -27,7 +27,7 @@
    *
    *
    * @author Paul Hammant <a href="mailto:Paul_Hammant@yahoo.com">Paul_Hammant@yahoo.com</a>
  - * @version $Revision: 1.25 $
  + * @version $Revision: 1.26 $
    */
   public abstract class AbstractDatabaseManager extends AbstractLogEnabled
           implements Composable, Initializable {
  @@ -79,6 +79,11 @@
           } catch (ActionException ae) {
               getLogger().error("processRequest(): ActionException",ae);
               return new ExceptionReply(ae.getMessage());
  +        } catch (Throwable t) {
  +            System.err.println("**** Unknown Exception ");
  +            t.printStackTrace();
  +            getLogger().error("processRequest(): unknown exception - " + t.getMessage()
,t);
  +            return new ExceptionReply("Unknown exception caught in server - " + t.getMessage());
           }
       }
   }
  
  
  

--
To unsubscribe, e-mail:   <mailto:avalon-cvs-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:avalon-cvs-help@jakarta.apache.org>


Mime
View raw message