MCPcopy Create free account
hub / github.com/nodejs/node / __init__

Method __init__

deps/v8/third_party/jinja2/exceptions.py:65–85  ·  view source on GitHub ↗
(
        self,
        names: t.Sequence[t.Union[str, "Undefined"]] = (),
        message: t.Optional[str] = None,
    )

Source from the content-addressed store, hash-verified

63 """
64
65 def __init__(
66 self,
67 names: t.Sequence[t.Union[str, "Undefined"]] = (),
68 message: t.Optional[str] = None,
69 ) -> None:
70 if message is None:
71 from .runtime import Undefined
72
73 parts = []
74
75 for name in names:
76 if isinstance(name, Undefined):
77 parts.append(name._undefined_message)
78 else:
79 parts.append(name)
80
81 parts_str = ", ".join(map(str, parts))
82 message = f"none of the templates given were found: {parts_str}"
83
84 super().__init__(names[-1] if names else None, message)
85 self.templates = list(names)
86
87
88class TemplateSyntaxError(TemplateError):

Callers

nothing calls this directly

Calls 5

mapFunction · 0.50
listFunction · 0.50
appendMethod · 0.45
joinMethod · 0.45
__init__Method · 0.45

Tested by

no test coverage detected