pyhunterbtt

Protocol library for Hunter BTT
git clone https://git.stephank.nl/pyhunterbtt
Log | Files | Refs | README | LICENSE | ZIP

exceptions.py (1140B)


      1 """Non-sensitive exceptions raised by Hunter BTT session operations."""
      2 
      3 
      4 class HunterBTTError(Exception):
      5     """Base class for operational Hunter BTT errors."""
      6 
      7 
      8 class NotAuthenticatedError(HunterBTTError):
      9     """Raised when an authenticated session operation is attempted too early."""
     10 
     11 
     12 class AuthenticationError(HunterBTTError):
     13     """Base class for failures during session authentication."""
     14 
     15 
     16 class AuthenticationIdentifierError(AuthenticationError):
     17     """Raised when the transient FFA5 identifier cannot be read."""
     18 
     19 
     20 class AuthenticationWriteError(AuthenticationError):
     21     """Raised when the FF81 authentication write fails."""
     22 
     23 
     24 class AuthenticationVerificationError(AuthenticationError):
     25     """Raised when post-authentication status verification fails."""
     26 
     27 
     28 class StatusReadError(HunterBTTError):
     29     """Raised when a controller status characteristic cannot be read."""
     30 
     31 
     32 class ConfigurationReadError(HunterBTTError):
     33     """Raised when a controller configuration characteristic cannot be read."""
     34 
     35 
     36 class ManualWateringError(HunterBTTError):
     37     """Raised when an observed manual-watering transaction cannot complete."""