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