summaryrefslogtreecommitdiff
path: root/TAO/tao/Exception.cpp
diff options
context:
space:
mode:
authorOssama Othman <ossama-othman@users.noreply.github.com>2001-04-27 21:42:40 +0000
committerOssama Othman <ossama-othman@users.noreply.github.com>2001-04-27 21:42:40 +0000
commita1329b27a637156372816dc197a03f9df2242bb7 (patch)
tree88f5ecc48b38f94e80399624067ecd6f1c77b468 /TAO/tao/Exception.cpp
parent2819757d7afdf4911ff50018bb6b5289037398c0 (diff)
downloadATCD-a1329b27a637156372816dc197a03f9df2242bb7.tar.gz
ChangeLogTag:Fri Apr 27 14:34:59 2001 Ossama Othman <ossama@uci.edu>
Diffstat (limited to 'TAO/tao/Exception.cpp')
-rw-r--r--TAO/tao/Exception.cpp19
1 files changed, 13 insertions, 6 deletions
diff --git a/TAO/tao/Exception.cpp b/TAO/tao/Exception.cpp
index d54f99d3c3e..91744e649fe 100644
--- a/TAO/tao/Exception.cpp
+++ b/TAO/tao/Exception.cpp
@@ -568,10 +568,10 @@ CORBA_SystemException::_info (void) const
const char *minor_description = 0;
if (minor_code > 0)
- minor_description =
- CORBA::SystemException::_tao_get_omg_exception_description (
- *this,
- minor_code);
+ minor_description =
+ CORBA::SystemException::_tao_get_omg_exception_description (
+ *this,
+ minor_code);
else
minor_description = "*unknown description*";
@@ -613,6 +613,8 @@ CORBA_SystemException::_tao_get_omg_exception_description (
const CORBA::SystemException &exc,
CORBA::ULong minor_code)
{
+#ifndef ACE_NDEBUG
+
static const char *UNKNOWN_TABLE[] =
{
"Unlisted user exception received by client.", // 1
@@ -735,7 +737,7 @@ CORBA_SystemException::_tao_get_omg_exception_description (
};
if (minor_code == 0)
- return 0;
+ return "*unknown description*";
minor_code--; // Adjust to match table offset.
@@ -795,7 +797,12 @@ CORBA_SystemException::_tao_get_omg_exception_description (
&& minor_code < sizeof INV_POLICY_TABLE / sizeof (char *))
return INV_POLICY_TABLE[minor_code];
- return 0;
+#else
+ ACE_UNUSED_ARG (exc);
+ ACE_UNUSED_ARG (minor_code);
+#endif /* !ACE_NDEBUG */
+
+ return "*unknown description";
}
// Note that "buffer" holds the (unscoped) name originally, and is