CORBA::WrongTransaction Exception Reference

UserException for DII requests. More...

import "WrongTransaction.pidl";

Inheritance diagram for CORBA::WrongTransaction:

Inheritance graph
[legend]
Collaboration diagram for CORBA::WrongTransaction:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 WrongTransaction (void)
 WrongTransaction (const WrongTransaction &)
 ~WrongTransaction (void)
WrongTransactionoperator= (const WrongTransaction &)
virtual CORBA::Exception_tao_duplicate (void) const
 Deep copy.

virtual void _raise (void) const
virtual void _tao_encode (TAO_OutputCDR &) const
virtual void _tao_decode (TAO_InputCDR &)
virtual CORBA::TypeCode_ptr _tao_type (void) const
 Will be overridden in the concrete derived classes.


Static Public Member Functions

void _tao_any_destructor (void *)
 Used in the non-copying Any insertion operator.

WrongTransaction_downcast (CORBA::Exception *)
 The narrow operation.

const WrongTransaction_downcast (CORBA::Exception const *)
 The const version of narrow operation.

CORBA::Exception_alloc (void)

Detailed Description

UserException for DII requests.

Exceptions:
WrongTransaction 
This exception is thrown if a CORBA Request is implicitly associated with a transaction and is found to have an error in its parameters when checked at runtime (invocation).

Definition at line 42 of file WrongTransaction.pidl.


Constructor & Destructor Documentation

CORBA::WrongTransaction::WrongTransaction void   ) 
 

Definition at line 58 of file WrongTransactionC.cpp.

00059   : CORBA::UserException (
00060         "IDL:omg.org/CORBA/WrongTransaction:1.0",
00061         "WrongTransaction"
00062       )
00063 {
00064 }

CORBA::WrongTransaction::WrongTransaction const WrongTransaction  ) 
 

CORBA::WrongTransaction::~WrongTransaction void   ) 
 

Definition at line 66 of file WrongTransactionC.cpp.

00067 {
00068 }


Member Function Documentation

CORBA::Exception * CORBA::WrongTransaction::_alloc void   )  [static]
 

Definition at line 104 of file WrongTransactionC.cpp.

References ACE_NEW_RETURN.

00105 {
00106   CORBA::Exception *retval = 0;
00107   ACE_NEW_RETURN (retval, ::CORBA::WrongTransaction, 0);
00108   return retval;
00109 }

const CORBA::WrongTransaction * CORBA::WrongTransaction::_downcast CORBA::Exception const *   )  [static]
 

The const version of narrow operation.

Reimplemented from CORBA::UserException.

Definition at line 99 of file WrongTransactionC.cpp.

00100 {
00101   return dynamic_cast<const WrongTransaction *> (_tao_excp);
00102 }

CORBA::WrongTransaction * CORBA::WrongTransaction::_downcast CORBA::Exception  )  [static]
 

The narrow operation.

Reimplemented from CORBA::UserException.

Definition at line 93 of file WrongTransactionC.cpp.

00094 {
00095   return dynamic_cast<WrongTransaction *> (_tao_excp);
00096 }

void CORBA::WrongTransaction::_raise void   )  const [virtual]
 

Implements CORBA::UserException.

Definition at line 123 of file WrongTransactionC.cpp.

References TAO_RAISE.

00124 {
00125   TAO_RAISE (*this);
00126 }

void CORBA::WrongTransaction::_tao_any_destructor void *   )  [static]
 

Used in the non-copying Any insertion operator.

Reimplemented from CORBA::Exception.

Definition at line 85 of file WrongTransactionC.cpp.

00086 {
00087   WrongTransaction *_tao_tmp_pointer =
00088     static_cast<WrongTransaction *> (_tao_void_pointer);
00089   delete _tao_tmp_pointer;
00090 }

void CORBA::WrongTransaction::_tao_decode TAO_InputCDR  )  [virtual]
 

Implements CORBA::Exception.

Definition at line 141 of file WrongTransactionC.cpp.

References ACE_THROW.

00145 {
00146   if (cdr >> *this)
00147     {
00148       return;
00149     }
00150 
00151   ACE_THROW (CORBA::MARSHAL ());
00152 }

CORBA::Exception * CORBA::WrongTransaction::_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 112 of file WrongTransactionC.cpp.

References ACE_NEW_RETURN.

00113 {
00114   CORBA::Exception *result = 0;
00115   ACE_NEW_RETURN (
00116       result,
00117       ::CORBA::WrongTransaction (*this),
00118       0
00119     );
00120   return result;
00121 }

void CORBA::WrongTransaction::_tao_encode TAO_OutputCDR  )  const [virtual]
 

Implements CORBA::Exception.

Definition at line 128 of file WrongTransactionC.cpp.

References ACE_THROW.

00132 {
00133   if (cdr << *this)
00134     {
00135       return;
00136     }
00137 
00138   ACE_THROW (CORBA::MARSHAL ());
00139 }

CORBA::TypeCode_ptr CORBA::WrongTransaction::_tao_type void   )  const [virtual]
 

Will be overridden in the concrete derived classes.

Reimplemented from CORBA::UserException.

Definition at line 155 of file WrongTransactionC.cpp.

References ACE_ERROR, ACE_TEXT, ACE_Dynamic_Service< TYPE >::instance(), LM_ERROR, and CORBA::TypeCode_ptr.

00156 {
00157   TAO_AnyTypeCode_Adapter *adapter =
00158     ACE_Dynamic_Service<TAO_AnyTypeCode_Adapter>::instance (
00159         "AnyTypeCode_Adapter"
00160       );
00161   if (adapter != 0)
00162     return adapter->_tao_type_WrongTransaction ();
00163   else
00164     {
00165       ACE_ERROR ((LM_ERROR,
00166                   ACE_TEXT ("(%P|%t) %p\n"),
00167                   ACE_TEXT ("Unable to find the ")
00168                   ACE_TEXT ("AnyTypeCode Adapter instance")));
00169       return 0;
00170     }
00171 }

WrongTransaction& CORBA::WrongTransaction::operator= const WrongTransaction  ) 
 


The documentation for this exception was generated from the following files:
Generated on Thu Nov 9 12:25:21 2006 for TAO by doxygen 1.3.6