CORBA::PolicyError Exception Reference

import "Policy.pidl";

Inheritance diagram for CORBA::PolicyError:

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

Collaboration graph
[legend]
List of all members.

Public Member Functions

 PolicyError (void)
 PolicyError (const PolicyError &)
 ~PolicyError (void)
PolicyErroroperator= (const PolicyError &)
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 &)
 PolicyError (::CORBA::PolicyErrorCode _tao_reason)
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.

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

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

CORBA::Exception_alloc (void)

Public Attributes

PolicyErrorCode reason
CORBA::PolicyErrorCode reason

Constructor & Destructor Documentation

CORBA::PolicyError::PolicyError void   ) 
 

Definition at line 100 of file PolicyC.cpp.

00101   : CORBA::UserException (
00102         "IDL:omg.org/CORBA/PolicyError:1.0",
00103         "PolicyError"
00104       )
00105 {
00106 }

CORBA::PolicyError::PolicyError const PolicyError  ) 
 

CORBA::PolicyError::~PolicyError void   ) 
 

Definition at line 108 of file PolicyC.cpp.

00109 {
00110 }

CORBA::PolicyError::PolicyError ::CORBA::PolicyErrorCode  _tao_reason  ) 
 

Definition at line 203 of file PolicyC.cpp.

References CORBA::PolicyErrorCode, and reason.

00206   : CORBA::UserException (
00207         "IDL:omg.org/CORBA/PolicyError:1.0",
00208         "PolicyError"
00209       )
00210 {
00211   this->reason = _tao_reason;
00212 }


Member Function Documentation

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

Definition at line 148 of file PolicyC.cpp.

References ACE_NEW_RETURN.

00149 {
00150   CORBA::Exception *retval = 0;
00151   ACE_NEW_RETURN (retval, ::CORBA::PolicyError, 0);
00152   return retval;
00153 }

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

The const version of narrow operation.

Reimplemented from CORBA::UserException.

Definition at line 143 of file PolicyC.cpp.

00144 {
00145   return dynamic_cast<const PolicyError *> (_tao_excp);
00146 }

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

The narrow operation.

Reimplemented from CORBA::UserException.

Definition at line 137 of file PolicyC.cpp.

00138 {
00139   return dynamic_cast<PolicyError *> (_tao_excp);
00140 }

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

Implements CORBA::UserException.

Definition at line 167 of file PolicyC.cpp.

References TAO_RAISE.

00168 {
00169   TAO_RAISE (*this);
00170 }

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

Used in the non-copying Any insertion operator.

Reimplemented from CORBA::Exception.

Definition at line 129 of file PolicyC.cpp.

00130 {
00131   PolicyError *_tao_tmp_pointer =
00132     static_cast<PolicyError *> (_tao_void_pointer);
00133   delete _tao_tmp_pointer;
00134 }

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

Implements CORBA::Exception.

Definition at line 185 of file PolicyC.cpp.

References ACE_THROW.

00189 {
00190   if (cdr >> *this)
00191     {
00192       return;
00193     }
00194 
00195   ACE_THROW (CORBA::MARSHAL ());
00196 }

CORBA::Exception * CORBA::PolicyError::_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 156 of file PolicyC.cpp.

References ACE_NEW_RETURN.

00157 {
00158   CORBA::Exception *result = 0;
00159   ACE_NEW_RETURN (
00160       result,
00161       ::CORBA::PolicyError (*this),
00162       0
00163     );
00164   return result;
00165 }

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

Implements CORBA::Exception.

Definition at line 172 of file PolicyC.cpp.

References ACE_THROW.

00176 {
00177   if (cdr << *this)
00178     {
00179       return;
00180     }
00181 
00182   ACE_THROW (CORBA::MARSHAL ());
00183 }

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

Will be overridden in the concrete derived classes.

Reimplemented from CORBA::UserException.

Definition at line 215 of file PolicyC.cpp.

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

00216 {
00217   TAO_AnyTypeCode_Adapter *adapter =
00218     ACE_Dynamic_Service<TAO_AnyTypeCode_Adapter>::instance (
00219         "AnyTypeCode_Adapter"
00220       );
00221   if (adapter != 0)
00222     return adapter->_tao_type_PolicyError ();
00223   else
00224     {
00225       ACE_ERROR ((LM_ERROR,
00226                   ACE_TEXT ("(%P|%t) %p\n"),
00227                   ACE_TEXT ("Unable to find the ")
00228                   ACE_TEXT ("AnyTypeCode Adapter instance")));
00229       return 0;
00230     }
00231 }

PolicyError& CORBA::PolicyError::operator= const PolicyError  ) 
 


Member Data Documentation

CORBA::PolicyErrorCode CORBA::PolicyError::reason
 

Definition at line 126 of file PolicyC.h.

PolicyErrorCode CORBA::PolicyError::reason
 

Definition at line 64 of file Policy.pidl.

Referenced by operator<<(), operator>>(), and PolicyError().


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