Application- or OMG- defined CORBA exception sub-class. More...
#include <UserException.h>
Public Member Functions | |
UserException (UserException const &rhs) | |
Copy constructor. | |
virtual | ~UserException (void) |
Destructor. | |
UserException & | operator= (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. |
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.
CORBA::UserException::UserException | ( | CORBA::UserException const & | rhs | ) |
CORBA::UserException::~UserException | ( | void | ) | [virtual] |
CORBA::UserException::UserException | ( | char const * | repository_id, | |
char const * | local_name | |||
) |
Constructor from a repository id.
Definition at line 13 of file UserException.inl.
: CORBA::Exception (repository_id, local_name) { }
CORBA::UserException::UserException | ( | void | ) | [protected] |
CORBA::UserException * CORBA::UserException::_downcast | ( | CORBA::Exception * | exception | ) | [static] |
The narrow operation.
Reimplemented from CORBA::Exception.
Reimplemented in CORBA::TypeCode::Bounds, CORBA::TypeCode::BadKind, CORBA::UnknownUserException, CORBA::ORB::InvalidName, CORBA::PolicyError, CORBA::InvalidPolicies, and CORBA::WrongTransaction.
Definition at line 27 of file UserException.inl.
{ return dynamic_cast<CORBA::UserException *> (exception); }
const CORBA::UserException * CORBA::UserException::_downcast | ( | CORBA::Exception const * | exception | ) | [static] |
The const version of narrow operation.
Reimplemented from CORBA::Exception.
Reimplemented in CORBA::UnknownUserException, CORBA::PolicyError, CORBA::InvalidPolicies, and CORBA::WrongTransaction.
Definition at line 33 of file UserException.inl.
{ return dynamic_cast<const CORBA::UserException *> (exception); }
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.
{ // @@ we can use the exception's typecode to dump all the data held // within it ... ACE_CString user_exception_info = "user exception, ID '"; user_exception_info += this->_rep_id (); user_exception_info += "'"; return user_exception_info; }
virtual void CORBA::UserException::_raise | ( | void | ) | const [pure virtual] |
Implements CORBA::Exception.
Implemented in CORBA::TypeCode::Bounds, CORBA::TypeCode::BadKind, CORBA::UnknownUserException, 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::UnknownUserException, CORBA::PolicyError, CORBA::InvalidPolicies, and CORBA::WrongTransaction.
Definition at line 33 of file UserException.cpp.
{
return 0;
}
CORBA::UserException & CORBA::UserException::operator= | ( | CORBA::UserException const & | rhs | ) |
Assignment operator.
Definition at line 25 of file UserException.cpp.
{ this->Exception::operator= (rhs); return *this; }