CORBA::UserException Class Reference

Application- or OMG- defined CORBA exception sub-class. More...

#include <UserException.h>

Inheritance diagram for CORBA::UserException:

Inheritance graph
[legend]
Collaboration diagram for CORBA::UserException:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 UserException (UserException const &rhs)
 Copy constructor.
virtual ~UserException (void)
 Destructor.
UserExceptionoperator= (UserException const &rhs)
 Assignment operator.
virtual void _raise (void) const =0
virtual CORBA::TypeCode_ptr _tao_type (void) const
 Will be overridden in the concrete derived classes.
 UserException (char const *repository_id, char const *local_name)
 Constructor from a repository id.
virtual ACE_CString _info (void) const

Static Public Member Functions

static UserException_downcast (CORBA::Exception *exception)
 The narrow operation.
static const UserException_downcast (CORBA::Exception const *exception)
 The const version of narrow operation.

Protected Member Functions

 UserException (void)
 Default constructor.

Detailed Description

Application- or OMG- defined CORBA exception sub-class.

User exceptions can be defined in application OMG IDL or by the OMG itself for IDL interfaces and services it defines.

Definition at line 41 of file UserException.h.


Constructor & Destructor Documentation

ACE_INLINE CORBA::UserException::UserException ( UserException const &  rhs  ) 

Copy constructor.

Definition at line 21 of file UserException.inl.

00022   : CORBA::Exception (rhs)
00023 {
00024 }

TAO_BEGIN_VERSIONED_NAMESPACE_DECL CORBA::UserException::~UserException ( void   )  [virtual]

Destructor.

Definition at line 20 of file UserException.cpp.

00021 {
00022 }

ACE_INLINE CORBA::UserException::UserException ( char const *  repository_id,
char const *  local_name 
)

Constructor from a repository id.

Definition at line 13 of file UserException.inl.

00015   : CORBA::Exception (repository_id,
00016                       local_name)
00017 {
00018 }

TAO_BEGIN_VERSIONED_NAMESPACE_DECL ACE_INLINE CORBA::UserException::UserException ( void   )  [protected]

Default constructor.

Definition at line 8 of file UserException.inl.

00009 {
00010 }


Member Function Documentation

ACE_INLINE const CORBA::UserException * CORBA::UserException::_downcast ( CORBA::Exception const *  exception  )  [static]

The const version of narrow operation.

Reimplemented from CORBA::Exception.

Reimplemented in CORBA::PolicyError, CORBA::InvalidPolicies, and CORBA::WrongTransaction.

Definition at line 33 of file UserException.inl.

00034 {
00035   return dynamic_cast<const CORBA::UserException *> (exception);
00036 }

ACE_INLINE CORBA::UserException * CORBA::UserException::_downcast ( CORBA::Exception exception  )  [static]

The narrow operation.

Reimplemented from CORBA::Exception.

Reimplemented in CORBA::ORB::InvalidName, CORBA::PolicyError, CORBA::InvalidPolicies, and CORBA::WrongTransaction.

Definition at line 27 of file UserException.inl.

Referenced by TAO_ServerRequest::caught_exception().

00028 {
00029   return dynamic_cast<CORBA::UserException *> (exception);
00030 }

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 39 of file UserException.cpp.

References CORBA::Exception::_rep_id().

00040 {
00041   // @@ we can use the exception's typecode to dump all the data held
00042   // within it ...
00043 
00044   ACE_CString user_exception_info = "user exception, ID '";
00045   user_exception_info += this->_rep_id ();
00046   user_exception_info += "'";
00047   return user_exception_info;
00048 }

virtual void CORBA::UserException::_raise ( void   )  const [pure virtual]

Implements CORBA::Exception.

Implemented in CORBA::ORB::InvalidName, CORBA::PolicyError, CORBA::InvalidPolicies, and CORBA::WrongTransaction.

CORBA::TypeCode_ptr CORBA::UserException::_tao_type ( void   )  const [virtual]

Will be overridden in the concrete derived classes.

Implements CORBA::Exception.

Reimplemented in CORBA::PolicyError, CORBA::InvalidPolicies, and CORBA::WrongTransaction.

Definition at line 33 of file UserException.cpp.

00034 {
00035   return 0;
00036 }

CORBA::UserException & CORBA::UserException::operator= ( UserException const &  rhs  ) 

Assignment operator.

Definition at line 25 of file UserException.cpp.

References CORBA::Exception::operator=().

00026 {
00027   this->Exception::operator= (rhs);
00028   return *this;
00029 }


The documentation for this class was generated from the following files:
Generated on Tue Feb 2 17:39:58 2010 for TAO by  doxygen 1.4.7