Out-of-bounds member index exception. More...
#include <TypeCode.h>


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) |
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.
| 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") { }
| 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] |
| void CORBA::TypeCode::Bounds::_tao_decode | ( | TAO_InputCDR & | cdr | ) | [virtual] |
| 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 ();
}
1.7.0