[Enterprise Extensions only]

ORB::create_exception_list

Overview Creates a CORBA::ExceptionList object.
Original class CORBA::ORB
Exceptions CORBA::SystemException


Intended Usage

The CORBA::ORB::create_exception_list method is intended to be used by client applications using the Dynamic Invocation Interface (DII), to create a CORBA::ExceptionList object to be subsequently passed to the CORBA::Object::create_request method.

IDL Syntax

  CORBA::Status create_exception_list (CORBA::ExceptionList_ptr & excp_list);

Input parameters

excp_list
A pointer for a CORBA::ExceptionList object, passed by reference, to be initialized by the CORBA::ORB::create_exception_list method. The caller assumes ownership of the new ExceptionList object, but if the caller passed the ExceptionList to the CORBA::Object::create_request method, ownership of the ExceptionList is then transferred to the Request object.

Return values

CORBA::Status
A zero return code indicates success.

Example

  #include "corba.h"
  #include
  int main(int argc, char* argv[])
  {
    int rc = 0;
    CORBA::ExceptionList_ptr ELptr = CORBA::ExceptionList::_nil();
    /* assume orb initialized */
    extern CORBA::ORB_ptr orb;
    try
    {
      CORBA::Status st = orb->create_exception_list(ELptr);
    }
    catch(CORBA::SystemException &se)
    {
      cout << "exception: " << se.id() << endl; rc="1;"
    }
    return rc;
  }