summaryrefslogtreecommitdiff
path: root/TAO/tao/SystemException.cpp
diff options
context:
space:
mode:
authorbala <bala@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>2004-12-01 17:22:38 +0000
committerbala <bala@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>2004-12-01 17:22:38 +0000
commit064ce3612edadca42bc68e53392722c336d515fb (patch)
tree2d3c8c2624a51f0ed0e6674d2543c9d593f6853d /TAO/tao/SystemException.cpp
parentac5c4566cd63a3cf049ab92d5af05eb3aecea783 (diff)
downloadATCD-064ce3612edadca42bc68e53392722c336d515fb.tar.gz
ChangeLogTag:Wed Dec 1 17:19:39 2004 Balachandran Natarajan <bala@dre.vanderbilt.edu>
Diffstat (limited to 'TAO/tao/SystemException.cpp')
-rw-r--r--TAO/tao/SystemException.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/TAO/tao/SystemException.cpp b/TAO/tao/SystemException.cpp
index fcef1f108db..ae1e9426a91 100644
--- a/TAO/tao/SystemException.cpp
+++ b/TAO/tao/SystemException.cpp
@@ -670,6 +670,12 @@ CORBA::SystemException::_tao_get_omg_exception_description (
"No PolicyFactory has been registered for the given PolicyType." // 3
};
+ static const char *BAD_OPERATION_TABLE[] =
+ {
+ "ServantManager returned wrong servant type." // 1
+ "Operation or Attribute not known to target object." // 2
+ };
+
if (minor_code == 0)
return "*unknown description*";
@@ -735,6 +741,9 @@ CORBA::SystemException::_tao_get_omg_exception_description (
&& minor_code < sizeof INV_POLICY_TABLE / sizeof (char *))
return INV_POLICY_TABLE[minor_code];
+ if (exc._is_a ("IDL:omg.org/CORBA/BAD_OPERATION:1.0")
+ && minor_code < sizeof BAD_OPERATION_TABLE / sizeof (char *))
+ return BAD_OPERATION_TABLE[minor_code];
#else
ACE_UNUSED_ARG (exc);
ACE_UNUSED_ARG (minor_code);