MCPcopy Create free account
hub / github.com/apache/madlib / error

Method error

src/madpack/argparse.py:2360–2370  ·  view source on GitHub ↗

error(message: string) Prints a usage message incorporating the message to stderr and exits. If you override this in a subclass, it should not return -- it should either exit or raise an exception.

(self, message)

Source from the content-addressed store, hash-verified

2358 _sys.exit(status)
2359
2360 def error(self, message):
2361 """error(message: string)
2362
2363 Prints a usage message incorporating the message to stderr and
2364 exits.
2365
2366 If you override this in a subclass, it should not return -- it
2367 should either exit or raise an exception.
2368 """
2369 self.print_usage(_sys.stderr)
2370 self.exit(2, _('%s: error: %s\n') % (self.prog, message))

Callers 8

add_subparsersMethod · 0.95
parse_argsMethod · 0.95
parse_known_argsMethod · 0.95
_parse_known_argsMethod · 0.95
_read_args_from_filesMethod · 0.95
_parse_optionalMethod · 0.95
_get_option_tuplesMethod · 0.95
runMethod · 0.80

Calls 2

print_usageMethod · 0.95
exitMethod · 0.95

Tested by

no test coverage detected