dbertoni    2004/02/10 16:06:56

  Modified:    c/samples/CompileStylesheet CompileStylesheet.cpp
               c/samples/DocumentBuilder DocumentBuilder.cpp
               c/samples/ExternalFunction ExternalFunction.cpp
               c/samples/UseStylesheetParam UseStylesheetParam.cpp
  Log:
  Enhanced error reporting.
  
  Revision  Changes    Path
  1.29      +4 -1      
xml-xalan/c/samples/CompileStylesheet/CompileStylesheet.cpp
  
  Index: CompileStylesheet.cpp
  ===================================================================
  RCS file: 
/home/cvs/xml-xalan/c/samples/CompileStylesheet/CompileStylesheet.cpp,v
  retrieving revision 1.28
  retrieving revision 1.29
  diff -u -r1.28 -r1.29
  --- CompileStylesheet.cpp     6 Jan 2004 02:41:26 -0000       1.28
  +++ CompileStylesheet.cpp     11 Feb 2004 00:06:56 -0000      1.29
  @@ -115,7 +115,10 @@
   
                catch (const XMLException& toCatch)
                {
  -                      cerr << "Error during Xerces initialization! "<< endl;
  +                      cerr << "Error during Xerces initialization.  Error 
code was "
  +                  << toCatch.getCode()
  +                  << "."
  +                  << endl;
                                
                         theResult = -1;
                }
  
  
  
  1.14      +5 -1      xml-xalan/c/samples/DocumentBuilder/DocumentBuilder.cpp
  
  Index: DocumentBuilder.cpp
  ===================================================================
  RCS file: /home/cvs/xml-xalan/c/samples/DocumentBuilder/DocumentBuilder.cpp,v
  retrieving revision 1.13
  retrieving revision 1.14
  diff -u -r1.13 -r1.14
  --- DocumentBuilder.cpp       6 Jan 2004 02:41:26 -0000       1.13
  +++ DocumentBuilder.cpp       11 Feb 2004 00:06:56 -0000      1.14
  @@ -203,7 +203,11 @@
                }
                catch (const XMLException& toCatch)
                {
  -                      cerr << "Error during Xerces initialization! "<< endl;
  +                      cerr << "Error during Xerces initialization.  Error 
code was "
  +                  << toCatch.getCode()
  +                  << "."
  +                  << endl;
  +
                         theResult = -1;
                }
   
  
  
  
  1.36      +5 -1      xml-xalan/c/samples/ExternalFunction/ExternalFunction.cpp
  
  Index: ExternalFunction.cpp
  ===================================================================
  RCS file: 
/home/cvs/xml-xalan/c/samples/ExternalFunction/ExternalFunction.cpp,v
  retrieving revision 1.35
  retrieving revision 1.36
  diff -u -r1.35 -r1.36
  --- ExternalFunction.cpp      6 Jan 2004 02:41:26 -0000       1.35
  +++ ExternalFunction.cpp      11 Feb 2004 00:06:56 -0000      1.36
  @@ -389,7 +389,11 @@
                }
                catch (const XMLException& toCatch)
                {
  -                      cerr << "Error during Xerces initialization! "<< endl;
  +                      cerr << "Error during Xerces initialization.  Error 
code was "
  +                  << toCatch.getCode()
  +                  << "."
  +                  << endl;
  +
                         theResult = -1;
                }
   
  
  
  
  1.25      +6 -2      
xml-xalan/c/samples/UseStylesheetParam/UseStylesheetParam.cpp
  
  Index: UseStylesheetParam.cpp
  ===================================================================
  RCS file: 
/home/cvs/xml-xalan/c/samples/UseStylesheetParam/UseStylesheetParam.cpp,v
  retrieving revision 1.24
  retrieving revision 1.25
  diff -u -r1.24 -r1.25
  --- UseStylesheetParam.cpp    6 Jan 2004 02:41:27 -0000       1.24
  +++ UseStylesheetParam.cpp    11 Feb 2004 00:06:56 -0000      1.25
  @@ -106,8 +106,12 @@
                }
                catch (const XMLException& toCatch)
                {
  -                      cerr << "Error during Xerces initialization! "<< endl;
  -                      theResult = -1;
  +                      cerr << "Error during Xerces initialization.  Error 
code was "
  +                  << toCatch.getCode()
  +                  << "."
  +                  << endl;
  +
  +             theResult = -1;
                }
   
                if ( theResult == 0)
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to