From e075d9f71a568f74e2cdc6e9f21aedf973aabcf1 Mon Sep 17 00:00:00 2001 From: skidder Date: Fri, 8 Oct 2004 15:05:44 +0000 Subject: [PATCH] Add comment for a couple ugly aspects of exception handling (they need to be fixed, eventually) --- src/include/fb_exception.h | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/include/fb_exception.h b/src/include/fb_exception.h index ff24b96eea..cc0abb8c58 100644 --- a/src/include/fb_exception.h +++ b/src/include/fb_exception.h @@ -81,7 +81,15 @@ public: virtual const char* what() const throw() { return "Firebird::status_exception"; } const ISC_STATUS* value() const { return m_status_vector; } + + // Returns true if strings contained in status vector are located in magical + // permanent circular buffer. False means that exception object owns strings + // and is about to deallocate them in its destructor bool strings_permanent() const { return m_strings_permanent; } + + // Returns true if exception class holds status vector for the error. + // Returns false when status vector is passed "by magic", probably + // somewhere in tdbb_status_vector bool status_known() const { return m_status_known; } // Takes permanent strings