Public Member Functions | Static Public Member Functions

CORBA::TypeCode::Bounds Class Reference

Out-of-bounds member index exception. More...

#include <TypeCode.h>

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

List of all members.

Public Member Functions

 Bounds (void)
 Constructor.
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 Bounds_downcast (CORBA::Exception *ex)
 The narrow operation.
static CORBA::Exception_alloc (void)

Detailed Description

Out-of-bounds member index exception.

Exception thrown when attempting to pass an out-of-bounds index value to a TypeCode operation that accepts a member index argument.

Definition at line 75 of file TypeCode.h.


Constructor & Destructor Documentation

CORBA::TypeCode::Bounds::Bounds ( void   ) 

Constructor.

Definition at line 222 of file TypeCode.cpp.

  : CORBA::UserException ("IDL:omg.org/CORBA/TypeCode/Bounds:1.0",
                          "Bounds")
{
}


Member Function Documentation

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

Definition at line 235 of file TypeCode.cpp.

{
  CORBA::Exception *retval = 0;
  ACE_NEW_RETURN (retval, ::CORBA::TypeCode::Bounds, 0);
  return retval;
}

CORBA::TypeCode::Bounds * CORBA::TypeCode::Bounds::_downcast ( CORBA::Exception exception  )  [static]

The narrow operation.

Reimplemented from CORBA::UserException.

Definition at line 229 of file TypeCode.cpp.

{
   return dynamic_cast <CORBA::TypeCode::Bounds*> (ex);
}

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

Implements CORBA::UserException.

Definition at line 253 of file TypeCode.cpp.

{
  throw *this;
}

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

Implements CORBA::Exception.

Definition at line 270 of file TypeCode.cpp.

{
}

CORBA::Exception * CORBA::TypeCode::Bounds::_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 243 of file TypeCode.cpp.

{
  CORBA::Exception *result;
  ACE_NEW_RETURN (result,
                  CORBA::TypeCode::Bounds (*this),
                  0);
  return result;
}

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

Implements CORBA::Exception.

Definition at line 259 of file TypeCode.cpp.

{
  if (cdr << this->_rep_id ())
    {
      return;
    }

  throw ::CORBA::MARSHAL ();
}


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines