diff options
author | nanbor <nanbor@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1998-12-22 18:06:47 +0000 |
---|---|---|
committer | nanbor <nanbor@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1998-12-22 18:06:47 +0000 |
commit | 06d27fffab2fe37d0c2a90fb0ec8f6aa10ce11be (patch) | |
tree | 29f035bcfbb42e2297bcb812d3dd8c3688c1ff16 | |
parent | b31eb7f4cedb4b44d6d401ca0da8f18d0343c721 (diff) | |
download | ATCD-06d27fffab2fe37d0c2a90fb0ec8f6aa10ce11be.tar.gz |
*** empty log message ***
-rw-r--r-- | TAO/docs/exceptions.html | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/TAO/docs/exceptions.html b/TAO/docs/exceptions.html index 8c14a97a7e7..80ccec0734a 100644 --- a/TAO/docs/exceptions.html +++ b/TAO/docs/exceptions.html @@ -171,18 +171,18 @@ definition of macros discussed here. and throw the specified exception when it fails to acquire the lock.<p> - <li>Be wary of <code>TAO_CATCHANY</code>. On platforms that use - simulated exceptions, it catches any CORBA exceptions passed - back by an operation. However, on platforms that support native - c++ exceptions, <code>TAO_CATCHANY</code> translates to - <code>catch (...)</code> which catches <em>any</em> c++ - exception. Under some circumstances (e.g., the + <li>Be <em>VERY</em> wary of <code>TAO_CATCHANY</code>. On + platforms that use simulated exceptions, it catches any CORBA + exceptions passed back by an operation. However, on platforms + that support native c++ exceptions, <code>TAO_CATCHANY</code> + translates to <code>catch (...)</code> which catches + <em>any</em> c++ exception. Under some circumstances (e.g., the <code>CATCHANY</code> block only performs resource clean-up for the current activation record,) this may be okay. But for other cases, <code>CATCHANY</code> may accidentally deal with the wrong exception. This is especially true if you are working on - the internal of TAO. A reasonable alternative in this case - will be to catch "CORBA_Exception" class.<p> + the internal of TAO. A reasonable alternative in this case will + be to catch "CORBA_Exception" class.<p> <li>Don't catch an exception just to rethrow it. Exceptions cost you performance.<p> |