geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gdam...@apache.org
Subject cvs commit: incubator-geronimo/sandbox/messaging/src/java/org/apache/geronimo/messaging RequestSender.java
Date Thu, 10 Jun 2004 23:08:07 GMT
gdamour     2004/06/10 16:08:07

  Modified:    sandbox/messaging/src/java/org/apache/geronimo/messaging
                        RequestSender.java
  Log:
  Replace the RuntimeExceptions with CommunicationExceptions
  
  Revision  Changes    Path
  1.3       +3 -3      incubator-geronimo/sandbox/messaging/src/java/org/apache/geronimo/messaging/RequestSender.java
  
  Index: RequestSender.java
  ===================================================================
  RCS file: /home/cvs/incubator-geronimo/sandbox/messaging/src/java/org/apache/geronimo/messaging/RequestSender.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- RequestSender.java	20 May 2004 13:37:11 -0000	1.2
  +++ RequestSender.java	10 Jun 2004 23:08:07 -0000	1.3
  @@ -114,7 +114,7 @@
   
           Result result = waitResponse(id, WAIT_RESPONSE);
           if ( !result.isSuccess() ) {
  -            throw new RuntimeException(result.getException());
  +            throw new CommunicationException(result.getThrowable());
           }
           return result.getResult();
       }
  @@ -163,7 +163,7 @@
               log.error(e);
               ex = e;
           }
  -        throw new RuntimeException(ex);
  +        throw new CommunicationException(ex);
       }
       
       /**
  
  
  

Mime
View raw message