MCPcopy Index your code
hub / github.com/python/cpython / InterceptedError

Class InterceptedError

Lib/test/test_optparse.py:29–39  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

27from optparse import _parse_num
28
29class InterceptedError(Exception):
30 def __init__(self,
31 error_message=None,
32 exit_status=None,
33 exit_message=None):
34 self.error_message = error_message
35 self.exit_status = exit_status
36 self.exit_message = exit_message
37
38 def __str__(self):
39 return self.error_message or self.exit_message or "intercepted error"
40
41class InterceptingOptionParser(OptionParser):
42 def exit(self, status=0, msg=None):

Callers 2

exitMethod · 0.85
errorMethod · 0.85

Calls

no outgoing calls

Tested by 2

exitMethod · 0.68
errorMethod · 0.68

Used in the wild real call sites across dependent graphs

searching dependent graphs…