def transform_node_has_been_removed_exception(func):
@wraps(func)<EOL>def wrapped(self, nodes, name, *args, **kwargs):<EOL><INDENT>"""<STR_LIT>"""<EOL>tolerance_exc_types = (<EOL>'<STR_LIT>',<EOL>'<STR_LIT>',<EOL>)<EOL>try:<EOL><INDENT>return func(self, nodes, name, *args, **kwargs)<EOL><DEDENT>except RpcRemoteException as e:<EOL><INDENT>for t in tolerance_exc_types:<EOL><INDENT>if e.error_type == t or e.error_type.endswith('<STR_LIT:.>' + t):<EOL><INDENT>raise PocoTargetRemovedException('<STR_LIT>'.format(func.__name__, name), safe_repr(nodes))<EOL><DEDENT><DEDENT>else:<EOL><INDENT>raise<EOL><DEDENT><DEDENT><DEDENT>return wrapped<EOL>
将HRpcRemoteException.NodeHasBeenRemovedException转换成PocoTargetRemovedException

:param func: 仅限getattr和setattr两个接口方法
:return: