This class can contain basic error or warning information from * either the XML SAX parser or the application: a parser writer or * application writer can subclass it to provide additional * functionality. SAX handlers may throw this exception or * any exception subclassed from it.
* *If the application needs to pass through other types of * exceptions, it must wrap those exceptions in a SAXException * or an exception derived from a SAXException.
* *If the parser or application needs to include information * about a specific location in an XML document, it should use the * SAXParseException subclass.
* * $Log$ * Revision 1.1 1999/11/09 01:07:47 twl * Initial revision * * 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 { public: /** @name Constructors and Destructor */ //@{ /** Default constructor */ SAXException() : fMsg(XMLString::replicate(XMLUni::fgZeroLenString)) { } /** * Create a new SAXException. * * @param msg The error or warning message. */ SAXException(const XMLCh* const msg) : fMsg(XMLString::replicate(msg)) { } SAXException(const char* const msg) : fMsg(XMLString::transcode(msg)) { } /** Destructor */ virtual ~SAXException() { } //@} const XMLCh* getMessage() const { return fMsg; } private : XMLCh* fMsg; }; #endif