MCPcopy
hub / github.com/pallets/click / fail

Method fail

src/click/core.py:803–809  ·  view source on GitHub ↗

Aborts the execution of the program with a specific error message. :param message: the error message to fail with.

(self, message: str)

Source from the content-addressed store, hash-verified

801 return value
802
803 def fail(self, message: str) -> t.NoReturn:
804 """Aborts the execution of the program with a specific error
805 message.
806
807 :param message: the error message to fail with.
808 """
809 raise UsageError(message, self)
810
811 def abort(self) -> t.NoReturn:
812 """Aborts the script."""

Callers 15

parse_argsMethod · 0.45
invokeMethod · 0.45
convertMethod · 0.45
convertMethod · 0.45
convertMethod · 0.45
convertMethod · 0.45
convertMethod · 0.45
convertMethod · 0.45
convertMethod · 0.45
convertMethod · 0.45
convertMethod · 0.45
parse_argsMethod · 0.45

Calls 1

UsageErrorClass · 0.85

Tested by 10

convertMethod · 0.36
convertMethod · 0.36
convertMethod · 0.36
convertMethod · 0.36
convertMethod · 0.36
convertMethod · 0.36
convertMethod · 0.36
convertMethod · 0.36
convertMethod · 0.36
parse_argsMethod · 0.36