summaryrefslogtreecommitdiff
path: root/py/modules/IcePy/Proxy.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'py/modules/IcePy/Proxy.cpp')
-rw-r--r--py/modules/IcePy/Proxy.cpp15
1 files changed, 15 insertions, 0 deletions
diff --git a/py/modules/IcePy/Proxy.cpp b/py/modules/IcePy/Proxy.cpp
index e0f61858496..90cf02923b7 100644
--- a/py/modules/IcePy/Proxy.cpp
+++ b/py/modules/IcePy/Proxy.cpp
@@ -827,6 +827,11 @@ proxyIceLocatorCacheTimeout(ProxyObject* self, PyObject* args)
{
newProxy = (*self->proxy)->ice_locatorCacheTimeout(timeout);
}
+ catch(const IceUtil::IllegalArgumentException& ex)
+ {
+ PyErr_Format(PyExc_RuntimeError, "%s", STRCAST(ex.reason().c_str()));
+ return 0;
+ }
catch(const Ice::Exception& ex)
{
setPythonException(ex);
@@ -855,6 +860,11 @@ proxyIceInvocationTimeout(ProxyObject* self, PyObject* args)
{
newProxy = (*self->proxy)->ice_invocationTimeout(timeout);
}
+ catch(const IceUtil::IllegalArgumentException& ex)
+ {
+ PyErr_Format(PyExc_RuntimeError, "%s", STRCAST(ex.reason().c_str()));
+ return 0;
+ }
catch(const Ice::Exception& ex)
{
setPythonException(ex);
@@ -1586,6 +1596,11 @@ proxyIceTimeout(ProxyObject* self, PyObject* args)
{
newProxy = (*self->proxy)->ice_timeout(timeout);
}
+ catch(const IceUtil::IllegalArgumentException& ex)
+ {
+ PyErr_Format(PyExc_RuntimeError, "%s", STRCAST(ex.reason().c_str()));
+ return 0;
+ }
catch(const Ice::Exception& ex)
{
setPythonException(ex);