snakeoil.cli.exceptions module¶
Command-line related exceptions
- exception snakeoil.cli.exceptions.ExitException(code=None)[source]¶
Bases:
ExceptionGeneric exception for exiting with a specific return message or status.
Used in cases where we might want to catch the exception and show a traceback for debugging. Note that this is used in place of SystemExit so we can differentiate between third party code using SystemExit and our own exit method to aid in debugging when necessary.