summaryrefslogtreecommitdiff
path: root/ACE/ACEXML/common/Env.i
diff options
context:
space:
mode:
Diffstat (limited to 'ACE/ACEXML/common/Env.i')
-rw-r--r--ACE/ACEXML/common/Env.i25
1 files changed, 25 insertions, 0 deletions
diff --git a/ACE/ACEXML/common/Env.i b/ACE/ACEXML/common/Env.i
new file mode 100644
index 00000000000..95c3f41c8aa
--- /dev/null
+++ b/ACE/ACEXML/common/Env.i
@@ -0,0 +1,25 @@
+// -*- C++ -*- $Id$
+
+#include "ace/Log_Msg.h" /* to get ACE_ASSERT */
+#include "ACEXML/common/Exception.h"
+
+ACEXML_INLINE ACEXML_Exception *
+ACEXML_Env::exception (void) const
+{
+ return this->exception_;
+}
+
+ACEXML_INLINE void
+ACEXML_Env::exception (ACEXML_Exception *ex)
+{
+ ACE_ASSERT (ex != this->exception_);
+ this->clear();
+ this->exception_ = ex;
+}
+
+ACEXML_INLINE void
+ACEXML_Env::clear (void)
+{
+ delete this->exception_;
+ this->exception_ = 0;
+}