#include "tao/operation_details.h"#include "tao/Stub.h"#include "tao/ORB_Constants.h"#include "tao/Exception_Data.h"#include "tao/SystemException.h"#include "tao/Argument.h"#include "tao/CDR.h"#include "ace/OS_NS_string.h"
Go to the source code of this file.
Functions | |
| ACE_RCSID (tao, operation_details,"$Id: operation_details.cpp 78128 2007-04-20 08:07:58Z johnnyw $") 1 CORBA | |
| ACE_RCSID | ( | tao | , | |
| operation_details | , | |||
| "$Id: operation_details.cpp 78128 2007-04-20 08:07:58Z johnnyw $" | ||||
| ) |
Definition at line 17 of file operation_details.cpp.
00019 : operation_details.cpp 78128 2007-04-20 08:07:58Z johnnyw $") 00020 00021 TAO_BEGIN_VERSIONED_NAMESPACE_DECL 00022 00023 CORBA::Exception * 00024 TAO_Operation_Details::corba_exception (const char *id) const 00025 { 00026 for (CORBA::ULong i = 0; i != this->ex_count_; ++i) 00027 { 00028 if (ACE_OS::strcmp (id, this->ex_data_[i].id) != 0) 00029 { 00030 continue; 00031 } 00032 00033 // Create an exception object 00034 CORBA::Exception *exception = this->ex_data_[i].alloc (); 00035 00036 if (exception == 0) 00037 { 00038 throw ::CORBA::NO_MEMORY (0, CORBA::COMPLETED_YES); 00039 } 00040 00041 // Return the exception object that we just created. 00042 return exception; 00043 } 00044 00045 // If there are no matches return an unknown exception. 00046 throw ::CORBA::UNKNOWN (0, CORBA::COMPLETED_YES); 00047 }
1.6.1