This is Xerces' default implementation of the PanicHanlder * interface, which will be instantiated and used in the * absence of an application's panic handler. *
*/ class XMLUTIL_EXPORT DefaultPanicHandler : public XMemory, public PanicHandler { public: /** @name hidden Constructors */ //@{ /** Default constructor */ DefaultPanicHandler(){}; /** Destructor */ virtual ~DefaultPanicHandler(){}; //@} /** @name Implement virtual panic handler interface */ //@{ /** * Receive notification of panic * *Upon invocation, a corresponding error message will be output * to the stderr, and program exit. *
* * @param reason The reason of panic * */ virtual void panic(const PanicHandler::PanicReasons reason); //@} private: /* Unimplemented Constructors and operators */ /* Copy constructor */ DefaultPanicHandler(const PanicHandler&); /** Assignment operator */ DefaultPanicHandler& operator=(const DefaultPanicHandler&); }; XERCES_CPP_NAMESPACE_END #endif