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 96 of file PolicyC.cpp.
00097 : CORBA::UserException ( 00098 "IDL:omg.org/CORBA/PolicyError:1.0", 00099 "PolicyError" 00100 ) 00101 { 00102 } |
|
|
|
|
|
Definition at line 104 of file PolicyC.cpp.
00105 {
00106 }
|
|
|
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 } |
|
|
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 }
|
|
|
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 }
|
|
|
The narrow operation.
Reimplemented from CORBA::UserException. Definition at line 133 of file PolicyC.cpp.
00134 {
00135 return dynamic_cast<PolicyError *> (_tao_excp);
00136 }
|
|
|
Implements CORBA::UserException. Definition at line 163 of file PolicyC.cpp.
00164 {
00165 throw *this;
00166 }
|
|
|
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 }
|
|
|
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 }
|
|
|
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 168 of file PolicyC.cpp.
00172 {
00173 if (cdr << *this)
00174 {
00175 return;
00176 }
00177
00178 throw ::CORBA::MARSHAL ();
00179 }
|
|
|
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 }
|
|
|
|
|
|
|
|
|
Definition at line 64 of file Policy.pidl. Referenced by operator<<(), operator>>(), and PolicyError(). |
1.3.6