dbertoni    01/12/19 14:00:56

  Modified:    c/src/PlatformSupport XSLException.cpp XSLException.hpp
  Log:
  Added new constructor.
  
  Revision  Changes    Path
  1.4       +18 -0     xml-xalan/c/src/PlatformSupport/XSLException.cpp
  
  Index: XSLException.cpp
  ===================================================================
  RCS file: /home/cvs/xml-xalan/c/src/PlatformSupport/XSLException.cpp,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- XSLException.cpp  2001/07/12 04:26:23     1.3
  +++ XSLException.cpp  2001/12/19 22:00:56     1.4
  @@ -59,6 +59,10 @@
   
   
   
  +#include <sax/Locator.hpp>
  +
  +
  +
   XSLException::XSLException(
                const XalanDOMString&   theMessage,
                const XalanDOMString&   theURI,
  @@ -69,6 +73,20 @@
        m_uri(theURI),
        m_lineNumber(theLineNumber),
        m_columnNumber(theColumnNumber),
  +     m_type(theType)
  +{
  +}
  +
  +
  +
  +XSLException::XSLException(
  +                     const Locator&                  theLocator,
  +                     const XalanDOMString&   theMessage,
  +                     const XalanDOMString&   theType) :
  +     m_message(theMessage),
  +     m_uri(theLocator.getSystemId()),
  +     m_lineNumber(theLocator.getLineNumber()),
  +     m_columnNumber(theLocator.getColumnNumber()),
        m_type(theType)
   {
   }
  
  
  
  1.7       +16 -0     xml-xalan/c/src/PlatformSupport/XSLException.hpp
  
  Index: XSLException.hpp
  ===================================================================
  RCS file: /home/cvs/xml-xalan/c/src/PlatformSupport/XSLException.hpp,v
  retrieving revision 1.6
  retrieving revision 1.7
  diff -u -r1.6 -r1.7
  --- XSLException.hpp  2001/07/12 04:26:24     1.6
  +++ XSLException.hpp  2001/12/19 22:00:56     1.7
  @@ -68,6 +68,10 @@
   
   
   
  +class Locator;
  +
  +
  +
   class XALAN_PLATFORMSUPPORT_EXPORT XSLException
   {
   public:
  @@ -86,6 +90,18 @@
                        const XalanDOMString&   theURI,
                        int                                             
theLineNumber,
                        int                                             
theColumnNumber,
  +                     const XalanDOMString&   theType = 
XalanDOMString(XALAN_STATIC_UCODE_STRING("XSLException")));
  +
  +     /**
  +      * Constructor
  +      * 
  +      * @param theLocator The locator instance for error reporting.
  +      * @param theMessage message to write when exception thrown
  +      * @param theType type of exception, default is "XSLException"
  +      */
  +     XSLException(
  +                     const Locator&                  theLocator,
  +                     const XalanDOMString&   theMessage,
                        const XalanDOMString&   theType = 
XalanDOMString(XALAN_STATIC_UCODE_STRING("XSLException")));
   
        /**
  
  
  

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

Reply via email to