# ********************************************************************** # # Copyright (c) 2003-2017 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._MyObjectDisp): 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