diff options
| author | Eugene Triguba <eugenetriguba@gmail.com> | 2020-07-26 18:34:15 -0500 |
|---|---|---|
| committer | Eugene Triguba <eugenetriguba@gmail.com> | 2020-07-26 18:34:15 -0500 |
| commit | f4ee8b652b96ab5b9bc8350ecd6c4e38346e3c77 (patch) | |
| tree | cf10a469274c7c16e61d540917171715e4f9471a | |
| parent | Add unreleased changes (diff) | |
| download | lirc-f4ee8b652b96ab5b9bc8350ecd6c4e38346e3c77.zip | |
Add connection error and replace lirc prefix to lircd
| -rw-r--r-- | lirc/exceptions.py | 18 |
1 files changed, 11 insertions, 7 deletions
diff --git a/lirc/exceptions.py b/lirc/exceptions.py index 314cf17..56753b9 100644 --- a/lirc/exceptions.py +++ b/lirc/exceptions.py @@ -7,15 +7,11 @@ class LircError(Exception): """ -class InvalidReplyPacketFormatError(LircError): - """The reply packet from LIRC was in an invalid format.""" - - -class LircSocketError(LircError): +class LircdSocketError(LircError): """For when a generic error occurs with the lircd socket""" -class LircSocketTimeoutError(LircSocketError): +class LircdSocketTimeoutError(LircdSocketError): """ For when a timeout error occurs with the socket. This can happen when recv does not find any data for @@ -23,7 +19,15 @@ class LircSocketTimeoutError(LircSocketError): """ -class LircCommandFailureError(LircError): +class LircdConnectionError(LircError): + """For when we are unable to connect to lircd.""" + + +class LircdInvalidReplyPacketError(LircError): + """The reply packet from lircd was in an invalid format.""" + + +class LircdCommandFailureError(LircError): """ For when we send a command to the LIRC server and that command fails to send, for whatever reason. |