2019-09-21 00:02:18 +00:00
|
|
|
"""Errors for scaffolding."""
|
|
|
|
|
|
|
|
|
|
|
|
class ExitApp(Exception):
|
|
|
|
"""Exception to indicate app should exit."""
|
|
|
|
|
2019-09-23 03:46:50 +00:00
|
|
|
def __init__(self, reason, exit_code=1):
|
2019-09-21 00:02:18 +00:00
|
|
|
"""Initialize the exit app exception."""
|
|
|
|
self.reason = reason
|
|
|
|
self.exit_code = exit_code
|