[libxml++/libxml++-2-40] SaxParser docs: Describe exception handling
- From: Kjell Ahlstedt <kjellahl src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libxml++/libxml++-2-40] SaxParser docs: Describe exception handling
- Date: Tue, 27 Oct 2015 15:19:32 +0000 (UTC)
commit 4b33a21bf0d881113c4ef92a3415a032559d80f8
Author: Kjell Ahlstedt <kjell ahlstedt bredband net>
Date: Tue Oct 27 16:15:30 2015 +0100
SaxParser docs: Describe exception handling
* libxml++/parsers/saxparser.h: Note in the class description that some
exceptions are replaced by xmlpp::exception if std::exception_ptr is not
supported. Bug #757042.
libxml++/parsers/saxparser.h | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/libxml++/parsers/saxparser.h b/libxml++/parsers/saxparser.h
index 965ef03..1362ca3 100644
--- a/libxml++/parsers/saxparser.h
+++ b/libxml++/parsers/saxparser.h
@@ -25,6 +25,11 @@ namespace xmlpp {
/** SAX XML parser.
* Derive your own class and override the on_*() methods.
+ *
+ * In a system that does not support std::exception_ptr: If an overridden on_*()
+ * method throws an exception which is not derived from xmlpp::exception,
+ * that exception is replaced by a xmlpp::exception before it is propagated
+ * out of the parse method, such as parse_file().
*/
class SaxParser : public Parser
{
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]