import "Policy.pidl";
Inheritance diagram for CORBA::PolicyError:


Public Member Functions | |
| PolicyError (void) | |
| PolicyError (const PolicyError &) | |
| ~PolicyError (void) | |
| PolicyError & | operator= (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 |
|
|
Definition at line 100 of file PolicyC.cpp.
00101 : CORBA::UserException ( 00102 "IDL:omg.org/CORBA/PolicyError:1.0", 00103 "PolicyError" 00104 ) 00105 { 00106 } |
|
|
|
|
|
Definition at line 108 of file PolicyC.cpp.
00109 {
00110 }
|
|
|
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 } |
|
|
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 }
|
|
|
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 }
|
|
|
The narrow operation.
Reimplemented from CORBA::UserException. Definition at line 137 of file PolicyC.cpp.
00138 {
00139 return dynamic_cast<PolicyError *> (_tao_excp);
00140 }
|
|
|
Implements CORBA::UserException. Definition at line 167 of file PolicyC.cpp. References TAO_RAISE.
00168 {
00169 TAO_RAISE (*this);
00170 }
|
|
|
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 }
|
|
|
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 }
|
|
|
Deep copy. The following operation is used in the implementation of it performs a deep copy of the exception, normally it is implemented as:
|
|
|
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 }
|
|
|
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 }
|
|
|
|
|
|
|
|
|
Definition at line 64 of file Policy.pidl. Referenced by operator<<(), operator>>(), and PolicyError(). |
1.3.6