MCPcopy Index your code
hub / github.com/nodejs/node / TemplateNotFound

Class TemplateNotFound

tools/inspector_protocol/jinja2/exceptions.py:45–61  ·  view source on GitHub ↗

Raised if a template does not exist.

Source from the content-addressed store, hash-verified

43
44@implements_to_string
45class TemplateNotFound(IOError, LookupError, TemplateError):
46 """Raised if a template does not exist."""
47
48 # looks weird, but removes the warning descriptor that just
49 # bogusly warns us about message being deprecated
50 message = None
51
52 def __init__(self, name, message=None):
53 IOError.__init__(self)
54 if message is None:
55 message = name
56 self.message = message
57 self.name = name
58 self.templates = [name]
59
60 def __str__(self):
61 return self.message
62
63
64class TemplatesNotFound(TemplateNotFound):

Callers 12

split_template_pathFunction · 0.90
get_sourceMethod · 0.90
get_sourceMethod · 0.90
get_sourceMethod · 0.90
get_sourceMethod · 0.90
get_sourceMethod · 0.90
get_loaderMethod · 0.90
get_sourceMethod · 0.90
loadMethod · 0.90
get_sourceMethod · 0.90
loadMethod · 0.90
loadMethod · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…