ViewNotFoundException is raised when a View is not found.
| 157 | |
| 158 | |
| 159 | class 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 | |
| 172 | class View: |
no outgoing calls
no test coverage detected