pyP2Monitor
1.0.0
Monitor a P2 furnace activity reading data on serial port
|
Class handling I/O exception. More...
Public Member Functions | |
def | __init__ |
Instanciate a P2ComError object. | |
def | __str__ |
Cast a P2ComError into a string. | |
def | getErrno |
Return the associated error code. | |
def | getErrStr |
Return the associated error string. | |
def | getData |
Return the associated data. |
Data Fields | |
errno | |
The associated error code. | |
data | |
The associaed datas. |
Static Public Attributes | |
dictionary | ERR_STR |
Stores string representation for an error code. | |
int | ERR_TIMEOUT = 9 |
Error code for timeout. | |
int | ERR_HEADER = 10 |
Error code for header receive. | |
int | ERR_DATASZ = 11 |
Error code for invalid data size. | |
int | ERR_DATA = 12 |
Error code for global data error. | |
int | ERR_CHKSUM_RECV = 13 |
Error code for invalid checksum on received frame. | |
int | ERR_CHKSUM = 2 |
Error code for checksum error. |
Class handling I/O exception.
This class is an exception class used to handle serial port I/O errors such as timeout.
def __init__ | ( | self, | |
errno, | |||
data = None |
|||
) |
Instanciate a P2ComError object.
errno | The error code |
data | The data received on serial port |
|
static |
Stores string representation for an error code.