From: stephan b. <sg...@us...> - 2004-12-31 16:16:59
|
Update of /cvsroot/pclasses/pclasses2/src/s11n/io In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv3551/src/s11n/io Modified Files: data_node_io.h Log Message: Added a try/catch, to help accomodate the massive number of throws from ctors in P. Index: data_node_io.h =================================================================== RCS file: /cvsroot/pclasses/pclasses2/src/s11n/io/data_node_io.h,v retrieving revision 1.5 retrieving revision 1.6 diff -u -d -r1.5 -r1.6 --- data_node_io.h 27 Dec 2004 18:06:46 -0000 1.5 +++ data_node_io.h 31 Dec 2004 16:16:45 -0000 1.6 @@ -335,7 +335,15 @@ return NULL; } // CERR << "Dispatching to node loader for cookie ["<<cookie<<"]\n"; - return ser->deserialize( is ); + try + { + return ser->deserialize( is ); + } + catch( ... ) + { + return 0; + } + return 0; } /** |