[Enterprise Extensions only]

Exception::id

Overview Indicates the runtime 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".

IDL Syntax

  const char * id() const;

Input parameters

None.

Return values

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