00001 // $Id: UserException.cpp 71473 2006-03-10 07:19:20Z jtc $ 00002 00003 #include "tao/UserException.h" 00004 00005 #include "ace/SString.h" 00006 #include "ace/OS_NS_string.h" 00007 00008 #if !defined (__ACE_INLINE__) 00009 # include "tao/UserException.inl" 00010 #endif /* __ACE_INLINE__ */ 00011 00012 ACE_RCSID (tao, 00013 UserException, 00014 "$Id: UserException.cpp 71473 2006-03-10 07:19:20Z jtc $") 00015 00016 00017 TAO_BEGIN_VERSIONED_NAMESPACE_DECL 00018 00019 // Virtual. Do not inline. 00020 CORBA::UserException::~UserException (void) 00021 { 00022 } 00023 00024 CORBA::UserException & 00025 CORBA::UserException::operator= (CORBA::UserException const & rhs) 00026 { 00027 this->Exception::operator= (rhs); 00028 return *this; 00029 } 00030 00031 // Virtual. Do not inline. 00032 CORBA::TypeCode_ptr 00033 CORBA::UserException::_tao_type (void) const 00034 { 00035 return 0; 00036 } 00037 00038 ACE_CString 00039 CORBA::UserException::_info (void) const 00040 { 00041 // @@ we can use the exception's typecode to dump all the data held 00042 // within it ... 00043 00044 ACE_CString user_exception_info = "user exception, ID '"; 00045 user_exception_info += this->_rep_id (); 00046 user_exception_info += "'"; 00047 return user_exception_info; 00048 } 00049 00050 TAO_END_VERSIONED_NAMESPACE_DECL