dbertoni    01/12/19 14:02:27

  Modified:    c/src/XPath XPathException.cpp XPathException.hpp
                        XPathParserException.cpp XPathParserException.hpp
  Log:
  Added and updated constructors.
  
  Revision  Changes    Path
  1.5       +8 -4      xml-xalan/c/src/XPath/XPathException.cpp
  
  Index: XPathException.cpp
  ===================================================================
  RCS file: /home/cvs/xml-xalan/c/src/XPath/XPathException.cpp,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -r1.4 -r1.5
  --- XPathException.cpp        2001/07/12 04:35:46     1.4
  +++ XPathException.cpp        2001/12/19 22:02:27     1.5
  @@ -62,14 +62,16 @@
   const XalanDOMString XPathException::s_emptyString;
   
   
  +
   XPathException::XPathException(
                        const XalanDOMString&   message,
                        const XalanDOMString&   theURI,
                        int                                             theLineNumber,
                        int                                             
theColumnNumber,
  +                     const XalanNode*                styleNode,
                        const XalanDOMString&   theType) :
        XSLException(message, theURI, theLineNumber, theColumnNumber, theType),
  -     m_styleNode(0)
  +     m_styleNode(styleNode)
   {
   }
   
  @@ -87,10 +89,12 @@
   
   
   XPathException::XPathException(
  -                     const XalanDOMString&   message,
  +                     const Locator&                  theLocator,
  +                     const XalanDOMString&   theMessage,
  +                     const XalanNode*                styleNode,
                        const XalanDOMString&   theType) :
  -     XSLException(message, theType),
  -     m_styleNode(0)
  +     XSLException(theLocator, theMessage, theType),
  +     m_styleNode(styleNode)
   {
   }
   
  
  
  
  1.7       +10 -4     xml-xalan/c/src/XPath/XPathException.hpp
  
  Index: XPathException.hpp
  ===================================================================
  RCS file: /home/cvs/xml-xalan/c/src/XPath/XPathException.hpp,v
  retrieving revision 1.6
  retrieving revision 1.7
  diff -u -r1.6 -r1.7
  --- XPathException.hpp        2001/07/12 04:35:46     1.6
  +++ XPathException.hpp        2001/12/19 22:02:27     1.7
  @@ -89,6 +89,7 @@
         * @param theURI the URI of the related document, if known
         * @param theLineNumber the line number of the related document, or -1 if not 
known
         * @param theColumnNumber the column number of the related document, or -1 if 
not known
  +      * @param styleNode the node in the stylesheet where the problem occurred
         * @param theType type of exception, default is "XPathException"
         */
        XPathException(
  @@ -96,28 +97,33 @@
                        const XalanDOMString&   theURI,
                        int                                             theLineNumber,
                        int                                             
theColumnNumber,
  +                     const XalanNode*                styleNode = 0,
                        const XalanDOMString&   theType = 
XalanDOMString(XALAN_STATIC_UCODE_STRING("XPathException")));
   
        /**
  -      * Construct an XPath exeption object.
  +      * Constructor
         * 
  -      * @param message message explaining the problem. 
  +      * @param theLocator The locator instance for error reporting.
  +      * @param theMessage message to write when exception thrown
         * @param styleNode the node in the stylesheet where the problem occurred
         * @param theType type of exception, default is "XPathException"
         */
        XPathException(
  -                     const XalanDOMString&   message,
  -                     const XalanNode*                styleNode,
  +                     const Locator&                  theLocator,
  +                     const XalanDOMString&   theMessage,
  +                     const XalanNode*                styleNode = 0,
                        const XalanDOMString&   theType = 
XalanDOMString(XALAN_STATIC_UCODE_STRING("XPathException")));
   
        /**
         * Construct an XPath exeption object.
         * 
         * @param message message explaining the problem. 
  +      * @param styleNode the node in the stylesheet where the problem occurred
         * @param theType type of exception, default is "XPathException"
         */
        XPathException(
                        const XalanDOMString&   message,
  +                     const XalanNode*                styleNode = 0,
                        const XalanDOMString&   theType = 
XalanDOMString(XALAN_STATIC_UCODE_STRING("XPathException")));
   
        virtual
  
  
  
  1.4       +12 -2     xml-xalan/c/src/XPath/XPathParserException.cpp
  
  Index: XPathParserException.cpp
  ===================================================================
  RCS file: /home/cvs/xml-xalan/c/src/XPath/XPathParserException.cpp,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- XPathParserException.cpp  2001/07/12 04:35:47     1.3
  +++ XPathParserException.cpp  2001/12/19 22:02:27     1.4
  @@ -66,16 +66,26 @@
                        int                                             theLineNumber,
                        int                                             
theColumnNumber,
                        const XalanDOMString&   theType) :
  -     XPathException(message, theURI, theLineNumber, theColumnNumber, theType)
  +     XPathException(message, theURI, theLineNumber, theColumnNumber, 0, theType)
   {
   }
   
   
   
   XPathParserException::XPathParserException(
  +                     const Locator&                  theLocator,
  +                     const XalanDOMString&   theMessage,
  +                     const XalanDOMString&   theType) :
  +     XPathException(theLocator, theMessage, 0, theType)
  +{
  +}
  +
  +
  +
  +XPathParserException::XPathParserException(
                        const XalanDOMString&   message,
                        const XalanDOMString&   theType) :
  -     XPathException(message, theType)
  +     XPathException(message, 0, theType)
   {
   }
   
  
  
  
  1.5       +12 -0     xml-xalan/c/src/XPath/XPathParserException.hpp
  
  Index: XPathParserException.hpp
  ===================================================================
  RCS file: /home/cvs/xml-xalan/c/src/XPath/XPathParserException.hpp,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -r1.4 -r1.5
  --- XPathParserException.hpp  2001/07/12 04:35:47     1.4
  +++ XPathParserException.hpp  2001/12/19 22:02:27     1.5
  @@ -94,6 +94,18 @@
        /**
         * Constructor
         * 
  +      * @param theLocator The locator instance for error reporting.
  +      * @param theMessage message to write when exception thrown
  +      * @param theType type of exception, default is "XPathParserException"
  +      */
  +     XPathParserException(
  +                     const Locator&                  theLocator,
  +                     const XalanDOMString&   theMessage,
  +                     const XalanDOMString&   theType = 
XalanDOMString(XALAN_STATIC_UCODE_STRING("XPathParserException")));
  +
  +     /**
  +      * Constructor
  +      * 
         * @param theMessage message to write when exception thrown
         * @param theType type of exception, default is "XPathParserException"
         */
  
  
  

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

Reply via email to