Files
hass-fpl/custom_components/fpl/exceptions.py
2022-12-06 11:57:03 -05:00

18 lines
444 B
Python

"""exceptions file"""
class WarrantException(Exception):
"""Base class for all Warrant exceptions"""
class ForceChangePasswordException(WarrantException):
"""Raised when the user is forced to change their password"""
class TokenVerificationException(WarrantException):
"""Raised when token verification fails."""
class NoTerrytoryAvailableException(Exception):
"""Thrown when not possible to determine user territory"""