MCPcopy Create free account
hub / github.com/dtmilano/AndroidViewClient / ViewNotFoundException

Class ViewNotFoundException

src/com/dtmilano/android/viewclient.py:159–169  ·  view source on GitHub ↗

ViewNotFoundException is raised when a View is not found.

Source from the content-addressed store, hash-verified

157
158
159class ViewNotFoundException(Exception):
160 """
161 ViewNotFoundException is raised when a View is not found.
162 """
163
164 def __init__(self, attr, value, root):
165 if isinstance(value, RegexType):
166 msg = "Couldn't find View with %s that matches '%s' in tree with root=%s" % (attr, value.pattern, root)
167 else:
168 msg = "Couldn't find View with %s='%s' in tree with root=%s" % (attr, value, root)
169 super(Exception, self).__init__(msg)
170
171
172class View:

Calls

no outgoing calls

Tested by

no test coverage detected