#include <Exception.h>
Inheritance diagram for CORBA::Exception:
Public Member Functions | |
Exception (const Exception &src) | |
Copy constructor. | |
Exception & | operator= (const Exception &src) |
Assignment operator. | |
Exception (const char *repository_id, const char *local_name) | |
Construct from a respository id. | |
virtual | ~Exception (void) |
Destructor. | |
virtual void | _raise (void) const =0 |
virtual const char * | _rep_id (void) const |
Return the repository ID of the Exception. | |
virtual const char * | _name (void) const |
Return the name of the Exception. | |
virtual CORBA::TypeCode_ptr | _tao_type (void) const |
Will be overridden in the concrete derived classes. | |
virtual int | _is_a (const char *repository_id) const |
void | _tao_print_exception (const char *info, FILE *f=stdout) const |
Print the exception to output determined by f. | |
virtual ACE_CString | _info (void) const =0 |
virtual void | _tao_encode (TAO_OutputCDR &cdr ACE_ENV_ARG_DECL_NOT_USED) const =0 |
virtual void | _tao_decode (TAO_InputCDR &cdr ACE_ENV_ARG_DECL_NOT_USED)=0 |
virtual CORBA::Exception * | _tao_duplicate (void) const =0 |
Deep copy. | |
Static Public Member Functions | |
Exception * | _downcast (Exception *x) |
Exception const * | _downcast (Exception const *x) |
void | _tao_any_destructor (void *) |
Used in the non-copying Any insertion operator. | |
Protected Member Functions | |
Exception (void) | |
Default constructor. | |
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.
|
Copy constructor.
|
|
Construct from a respository id.
|
|
Destructor.
|
|
Default constructor.
|
|
|
|
Returns a string containing information about the exception. This function is not CORBA compliant. Implemented in CORBA::SystemException, and CORBA::UserException. |
|
Reimplemented in CORBA::SystemException, and CORBA::UserException. |
|
Return the name of the Exception.
|
|
|
Return the repository ID of the Exception.
|
|
Used in the non-copying Any insertion operator.
Reimplemented in CORBA::Bounds, PortableInterceptor::InvalidSlot, IOP::Codec::InvalidTypeForEncoding, IOP::Codec::FormatMismatch, IOP::Codec::TypeMismatch, IOP::CodecFactory::UnknownEncoding, PortableInterceptor::ORBInitInfo::DuplicateName, PortableInterceptor::ORBInitInfo::InvalidName, PortableInterceptor::ForwardRequest, CORBA::PolicyError, CORBA::InvalidPolicies, and CORBA::WrongTransaction. |
|
Implemented in CORBA::SystemException, CORBA::TypeCode::Bounds, and CORBA::TypeCode::BadKind. |
|
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: virtual CORBA::Exception *_tao_duplicate (void) const { return new SomeException (*this); } }; Implemented in CORBA::Bounds, PortableInterceptor::InvalidSlot, IOP::Codec::InvalidTypeForEncoding, IOP::Codec::FormatMismatch, IOP::Codec::TypeMismatch, IOP::CodecFactory::UnknownEncoding, CORBA::ORB::InvalidName, PortableInterceptor::ORBInitInfo::DuplicateName, PortableInterceptor::ORBInitInfo::InvalidName, PortableInterceptor::ForwardRequest, CORBA::PolicyError, CORBA::InvalidPolicies, CORBA::PollableSet::NoPossiblePollable, CORBA::PollableSet::UnknownPollable, CORBA::SystemException, CORBA::TypeCode::Bounds, CORBA::TypeCode::BadKind, and CORBA::WrongTransaction. |
|
Implemented in CORBA::SystemException, CORBA::TypeCode::Bounds, and CORBA::TypeCode::BadKind. |
|
Print the exception to output determined by f.
|
|
Will be overridden in the concrete derived classes.
Reimplemented in CORBA::Bounds, PortableInterceptor::InvalidSlot, IOP::Codec::InvalidTypeForEncoding, IOP::Codec::FormatMismatch, IOP::Codec::TypeMismatch, IOP::CodecFactory::UnknownEncoding, PortableInterceptor::ORBInitInfo::DuplicateName, PortableInterceptor::ORBInitInfo::InvalidName, PortableInterceptor::ForwardRequest, CORBA::PolicyError, CORBA::InvalidPolicies, and CORBA::WrongTransaction. |
|
Assignment operator.
|
|
Repository Id.
|
|
Local name.
|