You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@xerces.apache.org by ab...@locus.apache.org on 2000/02/09 20:15:17 UTC
cvs commit: xml-xerces/c/src/sax SAXException.hpp
abagchi 00/02/09 11:15:17
Modified: c/src/sax SAXException.hpp
Log:
Inserted documentation for new APIs
Revision Changes Path
1.4 +26 -10 xml-xerces/c/src/sax/SAXException.hpp
Index: SAXException.hpp
===================================================================
RCS file: /home/cvs/xml-xerces/c/src/sax/SAXException.hpp,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- SAXException.hpp 2000/02/06 07:47:58 1.3
+++ SAXException.hpp 2000/02/09 19:15:17 1.4
@@ -56,6 +56,9 @@
/**
* $Log: SAXException.hpp,v $
+ * Revision 1.4 2000/02/09 19:15:17 abagchi
+ * Inserted documentation for new APIs
+ *
* Revision 1.3 2000/02/06 07:47:58 rahulj
* Year 2K copyright swat.
*
@@ -95,19 +98,6 @@
* about a specific location in an XML document, it should use the
* SAXParseException subclass.</p>
*
- * $Log: SAXException.hpp,v $
- * Revision 1.3 2000/02/06 07:47:58 rahulj
- * Year 2K copyright swat.
- *
- * Revision 1.2 1999/12/18 00:21:23 roddey
- * Fixed a small reported memory leak
- *
- * Revision 1.1.1.1 1999/11/09 01:07:47 twl
- * Initial checkin
- *
- * Revision 1.2 1999/11/08 20:45:02 rahul
- * Swat for adding in Product name and CVS comment log variable.
- *
* @see SAXParseException#SAXParseException
*/
class SAX_EXPORT SAXException
@@ -134,12 +124,22 @@
{
}
+ /**
+ * Create a new SAXException.
+ *
+ * @param msg The error or warning message.
+ */
SAXException(const char* const msg) :
fMsg(XMLString::transcode(msg))
{
}
+ /**
+ * Copy constructor
+ *
+ * @param toCopy The exception to be copy constructed
+ */
SAXException(const SAXException& toCopy) :
fMsg(XMLString::replicate(toCopy.fMsg))
@@ -156,6 +156,12 @@
/** @name Public Operators */
+ //@{
+ /**
+ * Assignment operator
+ *
+ * @param toCopy The object to be copied
+ */
SAXException& operator=(const SAXException& toCopy)
{
if (this == &toCopy)
@@ -165,12 +171,19 @@
fMsg = XMLString::replicate(toCopy.fMsg);
return *this;
}
+ //@}
/** @name Getter Methods */
+ //@{
+ /**
+ * Get the contents of the message
+ *
+ */
const XMLCh* getMessage() const
{
return fMsg;
}
+ //@}
private :