summaryrefslogtreecommitdiff
path: root/ACE/ACEXML/common/Env.i
blob: 95c3f41c8aac13af6da92a719efdb324fd47e340 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
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;
}