exception documentation

Simple custom stand-in for SystemExit. Replaces scattered sys.exit calls, improves testability, allows one to catch an exit request without intercepting real SystemExits (typically an unfriendly thing to do, as most users calling `sys.exit` rather expect it to truly exit.) Defaults to a non-printing, exit-0 friendly termination behavior if the exception is uncaught. If ``code`` (an int) given, that code is used to exit. If ``message`` (a string) given, it is printed to standard error, and the program exits with code ``1`` by default (unless overridden by also giving ``code`` explicitly.) .. versionadded:: 1.0

Method __init__ Undocumented
Instance Variable message Undocumented
Property code Undocumented
Instance Variable _code Undocumented
def __init__(self, message=None, code=None): (source)

Undocumented

Undocumented

Undocumented

Undocumented