From ce298ad2e8dbc3601d180c178bee9d606b8edab2 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Thu, 14 Mar 2013 10:45:12 +0200 Subject: Add convenience constructors to XML parsing and serialization exceptions --- cutl/xml/serializer.hxx | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'cutl/xml/serializer.hxx') diff --git a/cutl/xml/serializer.hxx b/cutl/xml/serializer.hxx index 591a20a..88164e2 100644 --- a/cutl/xml/serializer.hxx +++ b/cutl/xml/serializer.hxx @@ -20,6 +20,8 @@ namespace cutl { namespace xml { + class serializer; + struct LIBCUTL_EXPORT serialization: exception { virtual @@ -28,6 +30,8 @@ namespace cutl serialization (const std::string& name, const std::string& description); + serialization (const serializer&, const std::string& description); + const std::string& name () const {return name_;} @@ -38,6 +42,10 @@ namespace cutl what () const throw (); private: + void + init (); + + private: std::string name_; std::string description_; std::string what_; -- cgit v1.1