dbertoni 01/07/11 21:26:26
Modified: c/src/PlatformSupport XSLException.cpp XSLException.hpp
Log:
New constructors and data members.
Revision Changes Path
1.3 +17 -1 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.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- XSLException.cpp 2000/04/11 14:35:31 1.2
+++ XSLException.cpp 2001/07/12 04:26:23 1.3
@@ -58,14 +58,30 @@
#include "XSLException.hpp"
-#include <PlatformSupport/DOMStringHelper.hpp>
+XSLException::XSLException(
+ const XalanDOMString& theMessage,
+ const XalanDOMString& theURI,
+ int theLineNumber,
+ int theColumnNumber,
+ const XalanDOMString& theType) :
+ m_message(theMessage),
+ m_uri(theURI),
+ m_lineNumber(theLineNumber),
+ m_columnNumber(theColumnNumber),
+ m_type(theType)
+{
+}
+
XSLException::XSLException(
const XalanDOMString& theMessage,
const XalanDOMString& theType) :
m_message(theMessage),
+ m_uri(),
+ m_lineNumber(-1),
+ m_columnNumber(-1),
m_type(theType)
{
}
1.6 +57 -3 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.5
retrieving revision 1.6
diff -u -r1.5 -r1.6
--- XSLException.hpp 2000/10/12 13:28:27 1.5
+++ XSLException.hpp 2001/07/12 04:26:24 1.6
@@ -76,12 +76,28 @@
* Constructor
*
* @param theMessage message to write when exception thrown
- * @param theType type of exception, default is "XSLException"
+ * @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 theType type of exception, default is "XSLException"
*/
XSLException(
- const XalanDOMString& theMessage,
- const XalanDOMString& theType =
XalanDOMString(XALAN_STATIC_UCODE_STRING("XSLException")));
+ const XalanDOMString& theMessage,
+ const XalanDOMString& theURI,
+ int
theLineNumber,
+ int
theColumnNumber,
+ const XalanDOMString& theType =
XalanDOMString(XALAN_STATIC_UCODE_STRING("XSLException")));
+ /**
+ * Constructor
+ *
+ * @param theMessage message to write when exception thrown
+ * @param theType type of exception, default is "XSLException"
+ */
+ XSLException(
+ const XalanDOMString& theMessage,
+ const XalanDOMString& theType =
XalanDOMString(XALAN_STATIC_UCODE_STRING("XSLException")));
+
virtual
~XSLException();
@@ -107,9 +123,47 @@
return m_message;
}
+ /**
+ * Get the URI for the associated document, if any
+ *
+ * @return The URI.
+ */
+ const XalanDOMString&
+ getURI() const
+ {
+ return m_uri;
+ }
+
+ /**
+ * Retrieve the line number, or -1 if unknown
+ *
+ * @return the line number
+ */
+ int
+ getLineNumber() const
+ {
+ return m_lineNumber;
+ }
+
+ /**
+ * Retrieve the column number, or -1 if unknown
+ *
+ * @return the column number
+ */
+ int
+ getColumnNumber() const
+ {
+ return m_columnNumber;
+ }
+
private:
const XalanDOMString m_message;
+ const XalanDOMString m_uri;
+
+ const int m_lineNumber;
+ const int m_columnNumber;
+
const XalanDOMString m_type;
};
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]