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 96 of file PolicyC.cpp.

00097   : CORBA::UserException (
00098         "IDL:omg.org/CORBA/PolicyError:1.0",
00099         "PolicyError"
00100       )
00101 {
00102 }

CORBA::PolicyError::PolicyError const PolicyError  ) 
 

CORBA::PolicyError::~PolicyError void   ) 
 

Definition at line 104 of file PolicyC.cpp.

00105 {
00106 }

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

Definition at line 199 of file PolicyC.cpp.

References CORBA::PolicyErrorCode, and reason.

00202   : CORBA::UserException (
00203         "IDL:omg.org/CORBA/PolicyError:1.0",
00204         "PolicyError"
00205       )
00206 {
00207   this->reason = _tao_reason;
00208 }


Member Function Documentation

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

Definition at line 144 of file PolicyC.cpp.

References ACE_NEW_RETURN.

00145 {
00146   CORBA::Exception *retval = 0;
00147   ACE_NEW_RETURN (retval, ::CORBA::PolicyError, 0);
00148   return retval;
00149 }

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

The const version of narrow operation.

Reimplemented from CORBA::UserException.

Definition at line 139 of file PolicyC.cpp.

00140 {
00141   return dynamic_cast<const PolicyError *> (_tao_excp);
00142 }

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

The narrow operation.

Reimplemented from CORBA::UserException.

Definition at line 133 of file PolicyC.cpp.

00134 {
00135   return dynamic_cast<PolicyError *> (_tao_excp);
00136 }

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

Implements CORBA::UserException.

Definition at line 163 of file PolicyC.cpp.

00164 {
00165   throw *this;
00166 }

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

Used in the non-copying Any insertion operator.

Reimplemented from CORBA::Exception.

Definition at line 125 of file PolicyC.cpp.

00126 {
00127   PolicyError *_tao_tmp_pointer =
00128     static_cast<PolicyError *> (_tao_void_pointer);
00129   delete _tao_tmp_pointer;
00130 }

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

Implements CORBA::Exception.

Definition at line 181 of file PolicyC.cpp.

00185 {
00186   if (cdr >> *this)
00187     {
00188       return;
00189     }
00190 
00191   throw ::CORBA::MARSHAL ();
00192 }

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 152 of file PolicyC.cpp.

References ACE_NEW_RETURN.

00153 {
00154   CORBA::Exception *result = 0;
00155   ACE_NEW_RETURN (
00156       result,
00157       ::CORBA::PolicyError (*this),
00158       0
00159     );
00160   return result;
00161 }

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

Implements CORBA::Exception.

Definition at line 168 of file PolicyC.cpp.

00172 {
00173   if (cdr << *this)
00174     {
00175       return;
00176     }
00177 
00178   throw ::CORBA::MARSHAL ();
00179 }

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 211 of file PolicyC.cpp.

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

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

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


Member Data Documentation

CORBA::PolicyErrorCode CORBA::PolicyError::reason
 

Definition at line 125 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 Sun Jan 27 13:17:20 2008 for TAO by doxygen 1.3.6