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

Method __init__

deps/v8/third_party/jinja2/exceptions.py:91–106  ·  view source on GitHub ↗
(
        self,
        message: str,
        lineno: int,
        name: t.Optional[str] = None,
        filename: t.Optional[str] = None,
    )

Source from the content-addressed store, hash-verified

89 """Raised to tell the user that there is a problem with the template."""
90
91 def __init__(
92 self,
93 message: str,
94 lineno: int,
95 name: t.Optional[str] = None,
96 filename: t.Optional[str] = None,
97 ) -> None:
98 super().__init__(message)
99 self.lineno = lineno
100 self.name = name
101 self.filename = filename
102 self.source: t.Optional[str] = None
103
104 # this is set to True if the debug.translate_syntax_error
105 # function translated the syntax error into a new traceback
106 self.translated = False
107
108 def __str__(self) -> str:
109 # for translated errors we only return the message

Callers

nothing calls this directly

Calls 1

__init__Method · 0.45

Tested by

no test coverage detected