class RemoteVault(Vault): """Concrete implementation of the class respresenting the remote vault interface.""" def __init__(self, location): self.client = Client() self.client.connect(location) def get(self, id): try: return self.client.get(id) except RemoteError, e: raise EXCEPTION_MAP[e.name]() if e.name in EXCEPTION_MAP else e