Files
homeassistant-core/script/scaffold/error.py
T

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

11 lines
266 B
Python
Raw Normal View History

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