diff options
Diffstat (limited to 'python/test/Ice/defaultServant/MyObjectI.py')
-rw-r--r-- | python/test/Ice/defaultServant/MyObjectI.py | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/python/test/Ice/defaultServant/MyObjectI.py b/python/test/Ice/defaultServant/MyObjectI.py new file mode 100644 index 00000000000..97cbd4bbf3d --- /dev/null +++ b/python/test/Ice/defaultServant/MyObjectI.py @@ -0,0 +1,29 @@ +# ********************************************************************** +# +# Copyright (c) 2003-2015 ZeroC, Inc. All rights reserved. +# +# This copy of Ice is licensed to you under the terms described in the +# ICE_LICENSE file included in this distribution. +# +# ********************************************************************** + +import Ice, Test + +class MyObjectI(Test.MyObject): + def ice_ping(self, current=None): + name = current.id.name + + if name == "ObjectNotExist": + raise Ice.ObjectNotExistException() + elif name == "FacetNotExist": + raise Ice.FacetNotExistException() + + def getName(self, current=None): + name = current.id.name + + if name == "ObjectNotExist": + raise Ice.ObjectNotExistException() + elif name == "FacetNotExist": + raise Ice.FacetNotExistException() + + return name |