CORBA::TypeCode::BadKind Class Reference

Invalid TypeCode operation exception. More...

#include <TypeCode.h>

Inheritance diagram for CORBA::TypeCode::BadKind:

Inheritance graph
[legend]
Collaboration diagram for CORBA::TypeCode::BadKind:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 BadKind (void)
virtual CORBA::Exception_tao_duplicate (void) const
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)
static CORBA::Exception_alloc (void)

Detailed Description

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.


Constructor & Destructor Documentation

CORBA::TypeCode::BadKind::BadKind ( void   ) 

Definition at line 276 of file TypeCode.cpp.

00277   : CORBA::UserException ("IDL:omg.org/CORBA/TypeCode/BadKind:1.0",
00278                           "BadKind")
00279 {
00280 }


Member Function Documentation

static CORBA::Exception* CORBA::TypeCode::BadKind::_alloc ( void   )  [static]

CORBA::TypeCode::BadKind * CORBA::TypeCode::BadKind::_downcast ( CORBA::Exception ex  )  [static]

Reimplemented from CORBA::UserException.

Definition at line 283 of file TypeCode.cpp.

00284 {
00285   return dynamic_cast <CORBA::TypeCode::BadKind*> (ex);
00286 }

void CORBA::TypeCode::BadKind::_raise ( void   )  const [virtual]

Implements CORBA::UserException.

Definition at line 299 of file TypeCode.cpp.

00300 {
00301   throw *this;
00302 }

void CORBA::TypeCode::BadKind::_tao_decode ( TAO_InputCDR cdr  )  [virtual]

Implements CORBA::Exception.

Definition at line 316 of file TypeCode.cpp.

00317 {
00318 }

CORBA::Exception * CORBA::TypeCode::BadKind::_tao_duplicate ( void   )  const [virtual]

Implements CORBA::Exception.

Definition at line 289 of file TypeCode.cpp.

References ACE_NEW_RETURN.

00290 {
00291   CORBA::Exception *result = 0;
00292   ACE_NEW_RETURN (result,
00293                   CORBA::TypeCode::BadKind (*this),
00294                   0);
00295   return result;
00296 }

void CORBA::TypeCode::BadKind::_tao_encode ( TAO_OutputCDR cdr  )  const [virtual]

Implements CORBA::Exception.

Definition at line 305 of file TypeCode.cpp.

00306 {
00307   if (cdr << this->_rep_id ())
00308     {
00309       return;
00310     }
00311 
00312   throw ::CORBA::MARSHAL ();
00313 }


The documentation for this class was generated from the following files:
Generated on Tue Feb 2 17:40:29 2010 for TAO_AnyTypeCode by  doxygen 1.4.7