[Beepcore-java-commits] CVS: beepcore-java/src/org/beepcore/beep/transport/tcp TCPSession.java,1.34,
Status: Beta
Brought to you by:
huston
From: Huston F. <hu...@us...> - 2003-11-07 23:01:15
|
Update of /cvsroot/beepcore-java/beepcore-java/src/org/beepcore/beep/transport/tcp In directory sc8-pr-cvs1:/tmp/cvs-serv8082/src/org/beepcore/beep/transport/tcp Modified Files: TCPSession.java TCPSessionCreator.java Log Message: Added exception chaining for exceptions that were being remapped Index: TCPSession.java =================================================================== RCS file: /cvsroot/beepcore-java/beepcore-java/src/org/beepcore/beep/transport/tcp/TCPSession.java,v retrieving revision 1.34 retrieving revision 1.35 diff -C2 -r1.34 -r1.35 *** TCPSession.java 7 Nov 2003 17:39:21 -0000 1.34 --- TCPSession.java 7 Nov 2003 23:01:11 -0000 1.35 *************** *** 411,415 **** } } catch (IOException x) { ! throw new BEEPException("Unable to send SEQ" + x.getMessage()); } --- 411,415 ---- } } catch (IOException x) { ! throw new BEEPException("Unable to send SEQ", x); } Index: TCPSessionCreator.java =================================================================== RCS file: /cvsroot/beepcore-java/beepcore-java/src/org/beepcore/beep/transport/tcp/TCPSessionCreator.java,v retrieving revision 1.7 retrieving revision 1.8 diff -C2 -r1.7 -r1.8 *** TCPSessionCreator.java 23 Apr 2003 15:23:04 -0000 1.7 --- TCPSessionCreator.java 7 Nov 2003 23:01:12 -0000 1.8 *************** *** 74,78 **** new ProfileRegistry()); } catch (IOException x) { ! throw new BEEPException(x.getMessage()); } } --- 74,78 ---- new ProfileRegistry()); } catch (IOException x) { ! throw new BEEPException(x); } } *************** *** 99,103 **** registry, servername); } catch (IOException x) { ! throw new BEEPException(x.getMessage()); } } --- 99,103 ---- registry, servername); } catch (IOException x) { ! throw new BEEPException(x); } } *************** *** 235,239 **** listenerSockets.put(Integer.toString(port), socket); } catch (Exception x) { ! throw new BEEPException(x.getMessage()); } } --- 235,239 ---- listenerSockets.put(Integer.toString(port), socket); } catch (Exception x) { ! throw new BEEPException(x); } } *************** *** 245,249 **** return TCPSession.createListener(peer, registry); } catch (Exception e) { ! throw new BEEPException(e.getMessage()); } } --- 245,249 ---- return TCPSession.createListener(peer, registry); } catch (Exception e) { ! throw new BEEPException(e); } } *************** *** 273,277 **** return listen(addr, port, registry); } catch (UnknownHostException x) { ! throw new BEEPException(x.getMessage()); } } --- 273,277 ---- return listen(addr, port, registry); } catch (UnknownHostException x) { ! throw new BEEPException(x); } } |