Intended Usage
This method is intended to be used to create a TypeCode of kind tk_except, representing an IDL exception.
Syntax
CORBA::TypeCode_ptr create_exception_tc ( CORBA::RepositoryId rep_id, CORBA::Identifier name, CORBA::StructMemberSeq & members);
Input parameters
Return values
Example
/* Code to create a tk_except TypeCode corresponding to this IDL definition: exception my_exception { string my_string; }' */ /* assume op initialized */ extern CORBA::ORB_ptr op; CORBA::RepositoryId rep_id = CORBA::string_dup("RepositoryId_999"); CORBA::Identifier name = CORBA::string_dup("my_exception"); CORBA::StructMemberSeq st_seq; st_seq.length(1); st_seq[0].type = CORBA::_tc_string; st_seq[0].name = CORBA::string_dup("my_string"); CORBA::TypeCode_ptr tc = op->create_exception_tc (rep_id, name, st_seq);