Wrap Scopetracker constructor/destructor in big try-catch
[libi2ncommon] / src / tracefunc.hpp
index a575bfe..36a6227 100644 (file)
@@ -44,12 +44,15 @@ class PerThreadContainer;
  *
  * basically: emits a ENTER message on construction and a LEAVE message on destruction.
  * And indent these messages acoording to the nesting depth.
+ *
+ * If something goes wrong nothing is thrown from constructor/destructor. Will try to
+ * log only that some problem occurred.
  */
 class ScopeTracker
 {
    public:
-     ScopeTracker(const SourceLocation& loc);
-     ~ScopeTracker();
+     ScopeTracker(const SourceLocation& loc) throw ();
+     ~ScopeTracker() throw ();
 
    private:
      ScopeTracker(const ScopeTracker& rhs);