00001 // -*- C++ -*- Env.i,v 1.5 2002/11/27 20:50:36 shuston Exp 00002 00003 #include "ace/Log_Msg.h" /* to get ACE_ASSERT */ 00004 #include "ACEXML/common/Exception.h" 00005 00006 ACEXML_INLINE ACEXML_Exception * 00007 ACEXML_Env::exception (void) const 00008 { 00009 return this->exception_; 00010 } 00011 00012 ACEXML_INLINE void 00013 ACEXML_Env::exception (ACEXML_Exception *ex) 00014 { 00015 ACE_ASSERT (ex != this->exception_); 00016 this->clear(); 00017 this->exception_ = ex; 00018 } 00019 00020 ACEXML_INLINE void 00021 ACEXML_Env::clear (void) 00022 { 00023 delete this->exception_; 00024 this->exception_ = 0; 00025 }