|
TAO 4.0.0
|
#include <Exception.h>


Public Member Functions | |
| Exception (const Exception &src) | |
| Copy constructor. | |
| virtual | ~Exception ()=default |
| Destructor. | |
| virtual void | _raise () const =0 |
| virtual const char * | _rep_id () const |
| Return the repository ID of the Exception. | |
| virtual const char * | _name () const |
| Return the name of the Exception. | |
| virtual CORBA::TypeCode_ptr | _tao_type () const =0 |
| Will be overridden in the concrete derived classes. | |
| void | _tao_print_exception (const char *info, FILE *f=stdout) const |
| Print the exception to output determined by f. | |
| virtual ACE_CString | _info () const =0 |
| virtual void | _tao_encode (TAO_OutputCDR &cdr) const =0 |
| virtual void | _tao_decode (TAO_InputCDR &cdr)=0 |
| virtual CORBA::Exception * | _tao_duplicate () const =0 |
| Deep copy. | |
Static Public Member Functions | |
| static Exception * | _downcast (Exception *x) |
| static Exception const * | _downcast (Exception const *x) |
| static void | _tao_any_destructor (void *) |
| Used in the non-copying Any insertion operator. | |
Protected Member Functions | |
| Exception ()=default | |
| Default constructor. | |
| Exception & | operator= (const Exception &src) |
| Assignment operator. | |
| Exception (const char *repository_id, const char *local_name) | |
| Construct from a repository id. | |
Private Attributes | |
| CORBA::String_var | id_ |
| Repository Id. | |
| CORBA::String_var | name_ |
| Local name. | |
CORBA2-specified exception hierarchy. All exceptions have a type (represented by a TypeCode) and a widely scoped type ID (in the TypeCode) that are generated by any OMG-IDL compiler and available through the Interface Repository. Think of it as a "globally scoped" name distinguishing each exception.
| CORBA::Exception::Exception | ( | const Exception & | src | ) |
Copy constructor.
|
virtualdefault |
Destructor.
|
protecteddefault |
Default constructor.
|
protected |
Construct from a repository id.
|
static |
|
static |
|
pure virtual |
Returns a string containing information about the exception. This function is not CORBA compliant.
Implemented in CORBA::SystemException, and CORBA::UserException.
|
virtual |
Return the name of the Exception.
|
pure virtual |
Implemented in CORBA::ORB::InvalidName, CORBA::WrongTransaction, CORBA::SystemException, and CORBA::UserException.
|
virtual |
Return the repository ID of the Exception.
|
static |
Used in the non-copying Any insertion operator.
|
pure virtual |
Implemented in CORBA::ORB::InvalidName, CORBA::WrongTransaction, and CORBA::SystemException.
|
pure virtual |
Deep copy.
The following operation is used in the implementation of it performs a deep copy of the exception, normally it is implemented as:
class SomeException : public // Derives from CORBA::Exception { public: CORBA::Exception *_tao_duplicate () override const { CORBA::Exception *result {}; ACE_NEW_RETURN ( result, SomeException (*this), nullptr); return result; } };
Implemented in CORBA::ORB::InvalidName, CORBA::SystemException, and CORBA::WrongTransaction.
|
pure virtual |
Implemented in CORBA::ORB::InvalidName, CORBA::WrongTransaction, and CORBA::SystemException.
| void CORBA::Exception::_tao_print_exception | ( | const char * | info, |
| FILE * | f = stdout ) const |
Print the exception to output determined by f.
|
pure virtual |
Will be overridden in the concrete derived classes.
Implemented in CORBA::UserException, and CORBA::WrongTransaction.
|
protected |
Assignment operator.
|
private |
Repository Id.
|
private |
Local name.