Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Related Pages  

CORBA_UserException Class Reference

User exceptions are those defined by application developers using OMG-IDL. More...

#include <Exception.h>

Inheritance diagram for CORBA_UserException:

Inheritance graph
[legend]
Collaboration diagram for CORBA_UserException:

Collaboration graph
[legend]
List of all members.

Public Methods

 CORBA_UserException (const CORBA_UserException &src)
 Copy constructor. More...

 ~CORBA_UserException (void)
 Destructor. More...

CORBA_UserException & operator= (const CORBA_UserException &src)
 Assignment operator. More...

 CORBA_UserException (const char *repository_id, const char *local_name)
 Constructor from a repository id. More...

virtual int _is_a (const char *interface_id) const
virtual ACE_CString _info (void) const
 Returns a string containing information about the exception. This function is not CORBA compliant. More...

 CORBA_UserException (void)
 Default constructor. More...


Static Public Methods

CORBA_UserException * _downcast (CORBA_Exception *exception)
 The narrow operation. More...


Detailed Description

User exceptions are those defined by application developers using OMG-IDL.

Definition at line 156 of file Exception.h.


Constructor & Destructor Documentation

ACE_INLINE CORBA_UserException::CORBA_UserException const CORBA_UserException &    src
 

Copy constructor.

Definition at line 11 of file Exception.i.

00012   : CORBA_Exception (src)
00013 {
00014 }

CORBA_UserException::~CORBA_UserException void   
 

Destructor.

Definition at line 178 of file Exception.cpp.

00179 {
00180 }

CORBA_UserException::CORBA_UserException const char *    repository_id,
const char *    local_name
 

Constructor from a repository id.

Definition at line 171 of file Exception.cpp.

00173   : CORBA_Exception (repository_id,
00174                      local_name)
00175 {
00176 }

CORBA_UserException::CORBA_UserException void   
 

Default constructor.

Definition at line 167 of file Exception.cpp.

00168 {
00169 }


Member Function Documentation

CORBA_UserException * CORBA_UserException::_downcast CORBA_Exception   exception [static]
 

The narrow operation.

Reimplemented from CORBA_Exception.

Reimplemented in CORBA_TypeCode::Bounds.

Definition at line 198 of file Exception.cpp.

References CORBA_Exception::_is_a.

00199 {
00200   if (exception->_is_a ("IDL:omg.org/CORBA/UserException:1.0"))
00201     {
00202       return ACE_dynamic_cast (CORBA_UserException *,
00203                                exception);
00204     }
00205 
00206   return 0;
00207 }

ACE_CString CORBA_UserException::_info void    const [virtual]
 

Returns a string containing information about the exception. This function is not CORBA compliant.

Implements CORBA_Exception.

Definition at line 210 of file Exception.cpp.

References CORBA_Exception::_rep_id, and ACE_CString.

00211 {
00212   // @@ we can use the exception's typecode to dump all the data held
00213   // within it ...
00214 
00215   ACE_CString user_exception_info = "user exception, ID '";
00216   user_exception_info += this->_rep_id ();
00217   user_exception_info += "'";
00218   return user_exception_info;
00219 }

int CORBA_UserException::_is_a const char *    interface_id const [virtual]
 

Reimplemented from CORBA_Exception.

Definition at line 190 of file Exception.cpp.

References CORBA_Exception::_is_a, and ACE_OS_String::strcmp.

00191 {
00192   return ACE_OS_String::strcmp (interface_id,
00193                                 "IDL:omg.org/CORBA/UserException:1.0") == 0
00194     || CORBA_Exception::_is_a (interface_id);
00195 }

CORBA_UserException & CORBA_UserException::operator= const CORBA_UserException &    src
 

Assignment operator.

Definition at line 183 of file Exception.cpp.

References CORBA_Exception::operator=.

00184 {
00185   this->CORBA_Exception::operator= (src);
00186   return *this;
00187 }


The documentation for this class was generated from the following files:
Generated on Mon Jun 16 15:02:03 2003 for TAO by doxygen1.2.14 written by Dimitri van Heesch, © 1997-2002