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

11 lines
267 B
Python
Raw Normal View History

2020-04-09 14:13:20 -07:00
"""Errors for translations."""
class ExitApp(Exception):
"""Exception to indicate app should exit."""
def __init__(self, reason, exit_code=1):
"""Initialize the exit app exception."""
self.reason = reason
self.exit_code = exit_code