Invalid TypeCode
operation exception.
More...
#include <TypeCode.h>
Public Member Functions | |
BadKind (void) | |
virtual CORBA::Exception * | _tao_duplicate (void) const |
Deep copy. | |
virtual void | _raise (void) const |
virtual void | _tao_encode (TAO_OutputCDR &cdr) const |
virtual void | _tao_decode (TAO_InputCDR &cdr) |
Static Public Member Functions | |
static BadKind * | _downcast (CORBA::Exception *ex) |
The narrow operation. | |
static CORBA::Exception * | _alloc (void) |
Invalid TypeCode
operation exception.
Exception thrown when attempting to invoke a TypeCode
operation that is not valid for the type represented by the TypeCode
.
Definition at line 102 of file TypeCode.h.
CORBA::TypeCode::BadKind::BadKind | ( | void | ) |
Definition at line 276 of file TypeCode.cpp.
: CORBA::UserException ("IDL:omg.org/CORBA/TypeCode/BadKind:1.0", "BadKind") { }
static CORBA::Exception* CORBA::TypeCode::BadKind::_alloc | ( | void | ) | [static] |
CORBA::TypeCode::BadKind * CORBA::TypeCode::BadKind::_downcast | ( | CORBA::Exception * | exception | ) | [static] |
The narrow operation.
Reimplemented from CORBA::UserException.
Definition at line 283 of file TypeCode.cpp.
{ return dynamic_cast <CORBA::TypeCode::BadKind*> (ex); }
void CORBA::TypeCode::BadKind::_raise | ( | void | ) | const [virtual] |
void CORBA::TypeCode::BadKind::_tao_decode | ( | TAO_InputCDR & | cdr | ) | [virtual] |
CORBA::Exception * CORBA::TypeCode::BadKind::_tao_duplicate | ( | void | ) | const [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: virtual CORBA::Exception *_tao_duplicate (void) const { CORBA::Exception *result = 0; ACE_NEW_RETURN ( result, SomeException (*this), 0 ); return result; } };
Implements CORBA::Exception.
Definition at line 289 of file TypeCode.cpp.
{ CORBA::Exception *result = 0; ACE_NEW_RETURN (result, CORBA::TypeCode::BadKind (*this), 0); return result; }
void CORBA::TypeCode::BadKind::_tao_encode | ( | TAO_OutputCDR & | cdr | ) | const [virtual] |
Implements CORBA::Exception.
Definition at line 305 of file TypeCode.cpp.
{ if (cdr << this->_rep_id ()) { return; } throw ::CORBA::MARSHAL (); }