Exception::id

Overview Indicates the run-time type of an Exception.
Original class CORBA::Exception


Intended Usage

This method is intended to be used when an Exception is caught (in the catch clause of a try/catch block), to determine the exact type of Exception that was thrown. For example, if a CORBA::NO_MEMORY exception is thrown and caught as a generic CORBA::Exception, the id() method can be invoked on the Exception, which will yield "CORBA::NO_MEMORY".

Syntax

  const char * id() const;

Input parameters

None.

Return values

const char *
The string name of the run-time type of the Exception object. The Exception object retains ownership of this string and the caller should not attempt to free it.

Related reference
CORBA module



Searchable topic ID:   rcor_modex3
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_modex3.html

Library | Support | Terms of Use | Feedback