diff options
author | Bernard Normier <bernard@zeroc.com> | 2007-05-17 15:42:27 +0000 |
---|---|---|
committer | Bernard Normier <bernard@zeroc.com> | 2007-05-17 15:42:27 +0000 |
commit | 905be59592a7dc2f18485e0158cf6faed7921304 (patch) | |
tree | c98eb0acb434405a7e562ce7efb6e1b7b67fa5c1 /cpp/src/Ice/IncomingAsync.cpp | |
parent | Backed out multihome change (diff) | |
download | ice-905be59592a7dc2f18485e0158cf6faed7921304.tar.bz2 ice-905be59592a7dc2f18485e0158cf6faed7921304.tar.xz ice-905be59592a7dc2f18485e0158cf6faed7921304.zip |
Added __validateXXX
Diffstat (limited to 'cpp/src/Ice/IncomingAsync.cpp')
-rw-r--r-- | cpp/src/Ice/IncomingAsync.cpp | 36 |
1 files changed, 24 insertions, 12 deletions
diff --git a/cpp/src/Ice/IncomingAsync.cpp b/cpp/src/Ice/IncomingAsync.cpp index 70a9218e6fc..7a7bc182f05 100644 --- a/cpp/src/Ice/IncomingAsync.cpp +++ b/cpp/src/Ice/IncomingAsync.cpp @@ -345,32 +345,44 @@ IceAsync::Ice::AMD_Array_Object_ice_invoke::AMD_Array_Object_ice_invoke(Incoming void IceAsync::Ice::AMD_Array_Object_ice_invoke::ice_response(bool ok, const pair<const Byte*, const Byte*>& outParams) { - try - { - __os()->writeBlob(outParams.first, static_cast<Int>(outParams.second - outParams.first)); - } - catch(const LocalException& ex) + if(__validateResponse(ok)) { - __exception(ex); - return; + try + { + __os()->writeBlob(outParams.first, static_cast<Int>(outParams.second - outParams.first)); + } + catch(const LocalException& ex) + { + __exception(ex); + return; + } + __response(ok); } - __response(ok); } void IceAsync::Ice::AMD_Array_Object_ice_invoke::ice_exception(const Exception& ex) { - __exception(ex); + if(__validateException(ex)) + { + __exception(ex); + } } void IceAsync::Ice::AMD_Array_Object_ice_invoke::ice_exception(const std::exception& ex) -{ - __exception(ex); +{ + if(__validateException(ex)) + { + __exception(ex); + } } void IceAsync::Ice::AMD_Array_Object_ice_invoke::ice_exception() { - __exception(); + if(__validateException()) + { + __exception(); + } } |