CVS: beepcore-java/tls/org/beepcore/beep/profile/tls/ptls TLSProfilePureTLS.java,1.8,1.9 TLSProfilePureTLSPemInit.java,1.5,1.6

Huston Franklin <[email protected]> Fri, 07 Nov 2003 15:01:39 -0800
Newsgroups gmane.network.beep.beepcore.java.cvs
Message-ID <[email protected]>
Update of /cvsroot/beepcore-java/beepcore-java/tls/org/beepcore/beep/profile/tls/ptls
In directory sc8-pr-cvs1:/tmp/cvs-serv8175/tls/org/beepcore/beep/profile/tls/ptls

Modified Files:
	TLSProfilePureTLS.java TLSProfilePureTLSPemInit.java 
Log Message:
Added exception chaining for exceptions that were being remapped

Index: TLSProfilePureTLS.java
===================================================================
RCS file: /cvsroot/beepcore-java/beepcore-java/tls/org/beepcore/beep/profile/tls/ptls/TLSProfilePureTLS.java,v
retrieving revision 1.8
retrieving revision 1.9
diff -C2 -r1.8 -r1.9
*** TLSProfilePureTLS.java	15 Sep 2003 15:23:32 -0000	1.8
--- TLSProfilePureTLS.java	7 Nov 2003 23:01:35 -0000	1.9
***************
*** 282,286 ****
                  policy.setCipherSuites(ciphers);
              } catch (Exception e) {
!                 throw new BEEPException(e.getMessage());
              }
          }
--- 282,286 ----
                  policy.setCipherSuites(ciphers);
              } catch (Exception e) {
!                 throw new BEEPException(e);
              }
          }
***************
*** 667,673 ****
              peerCred = new SessionCredential(ht);
          } catch (Exception e) {
!             e.printStackTrace();
! 
!             throw new BEEPException(e.getMessage());
          } finally {}
  
--- 667,671 ----
              peerCred = new SessionCredential(ht);
          } catch (Exception e) {
!             throw new BEEPException(e);
          } finally {}
  
***************
*** 738,742 ****
              PureTLSPackageBridge.setPrivateKey(context, key);
          } catch (Exception e) {
!             throw new BEEPException(e.getMessage());
          }
      }
--- 736,740 ----
              PureTLSPackageBridge.setPrivateKey(context, key);
          } catch (Exception e) {
!             throw new BEEPException(e);
          }
      }
***************
*** 769,773 ****
                  e.printStackTrace();
  
!                 throw new BEEPException(e.getMessage());
              }
          }
--- 767,771 ----
                  e.printStackTrace();
  
!                 throw new BEEPException(e);
              }
          }
***************
*** 802,806 ****
                  e.printStackTrace();
  
!                 throw new BEEPException(e.getMessage());
              }
          }
--- 800,804 ----
                  e.printStackTrace();
  
!                 throw new BEEPException(e);
              }
          }
***************
*** 831,835 ****
              policy.setCipherSuites(ciphers);
          } catch (Exception e) {
!             throw new BEEPException(e.getMessage());
          }
      }
--- 829,833 ----
              policy.setCipherSuites(ciphers);
          } catch (Exception e) {
!             throw new BEEPException(e);
          }
      }

Index: TLSProfilePureTLSPemInit.java
===================================================================
RCS file: /cvsroot/beepcore-java/beepcore-java/tls/org/beepcore/beep/profile/tls/ptls/TLSProfilePureTLSPemInit.java,v
retrieving revision 1.5
retrieving revision 1.6
diff -C2 -r1.5 -r1.6
*** TLSProfilePureTLSPemInit.java	7 Jun 2003 17:29:47 -0000	1.5
--- TLSProfilePureTLSPemInit.java	7 Nov 2003 23:01:36 -0000	1.6
***************
*** 186,190 ****
                  tlsp.setCipherSuite(ciphers);
              } catch (Exception e) {
!                 throw new BEEPException(e.getMessage());
              }
          }
--- 186,190 ----
                  tlsp.setCipherSuite(ciphers);
              } catch (Exception e) {
!                 throw new BEEPException(e);
              }
          }



-------------------------------------------------------
This SF.Net email sponsored by: ApacheCon 2003,
16-19 November in Las Vegas. Learn firsthand the latest
developments in Apache, PHP, Perl, XML, Java, MySQL,
WebDAV, and more! http://www.apachecon.com/