OperationDef::exceptions

Overview The exceptions read and write operations allow access and update of the list of exceptions associated with an operation definition (CORBA::OperationDef) within the Interface Repository.
Original interface OperationDef Interface
Exceptions CORBA::SystemException


Intended Usage

The exceptions attribute specifies the list of exception types that can be raised by the operation. The exceptions read and write operations are supported with parameter and result descriptions as defined below.

Syntax

  attribute ExceptionDefSeq exceptions;

Read operations

Input parameters
None.
Return values
CORBA::ExceptionDefSeq *

The returned value is a pointer to a copy of the exceptions attribute of the operation definition. The memory is owned by the caller and can be removed by invoking delete.

Write operations

Input parameters
CORBA::ExceptionDefSeq & exceptions

The exceptions parameter is the sequence of exceptions with which to update the exceptions attribute of the operation definition (the sequence length may be set to zero to indicate no exceptions for the operation).

Return values
None.

Example

  // C++
     // assume that 'this_operation' and 'this_exception'
     // have already been defined
     CORBA::OperationDef * this_operation;
     CORBA::ExceptionDef * this_exception;
 
     // establish the exception definition sequence to update the operation
     CORBA::ExceptionDefSeq new_exceptions;
     new_exceptions.length (1);
     new_exceptions[0] = this_exception;
     this_operation-> exceptions (new_exceptions);
 
     // retrieve the exception list from the operation
     CORBA::ExceptionDefSeq * returned_exception_list;  
     returned_exception_list = this_operation-> exceptions ();

Related reference
CORBA module



Searchable topic ID:   rcor_modop3
Last updated: Jun 21, 2007 8:07:48 PM CDT    WebSphere Business Integration Server Foundation, Version 5.0.2
http://publib.boulder.ibm.com/infocenter/wasinfo/index.jsp?topic=/com.ibm.wasee.doc/info/ee/corba/ref/rcor_modop3.html

Library | Support | Terms of Use | Feedback