MCPcopy Create free account
hub / github.com/dek924/PerX2CT / KeyNotFoundError

Class KeyNotFoundError

taming/util.py:47–59  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

45
46
47class KeyNotFoundError(Exception):
48 def __init__(self, cause, keys=None, visited=None):
49 self.cause = cause
50 self.keys = keys
51 self.visited = visited
52 messages = list()
53 if keys is not None:
54 messages.append("Key not found: {}".format(keys))
55 if visited is not None:
56 messages.append("Visited: {}".format(visited))
57 messages.append("Cause:\n{}".format(cause))
58 message = "\n".join(messages)
59 super().__init__(message)
60
61
62def retrieve(

Callers 1

retrieveFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected