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

Class Failure

tools/inspector_protocol/jinja2/lexer.py:219–229  ·  view source on GitHub ↗

Class that raises a `TemplateSyntaxError` if called. Used by the `Lexer` to specify known errors.

Source from the content-addressed store, hash-verified

217
218
219class Failure(object):
220 """Class that raises a `TemplateSyntaxError` if called.
221 Used by the `Lexer` to specify known errors.
222 """
223
224 def __init__(self, message, cls=TemplateSyntaxError):
225 self.message = message
226 self.error_class = cls
227
228 def __call__(self, lineno, filename):
229 raise self.error_class(self.message, lineno, filename)
230
231
232class Token(tuple):

Callers 1

__init__Method · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected