comparison Control.py @ 16:f1832dec26e3 default tip

Move OWReadError to MonitorDev since that's where it's raised.
author darius
date Tue, 23 Oct 2007 01:05:21 +0000
parents 9d5b291cfd01
children
comparison
equal deleted inserted replaced
15:dc751c2d415e 16:f1832dec26e3
1 #!/usr/bin/env python 1 #!/usr/bin/env python
2 2
3 ############################################################################ 3 ############################################################################
4 # Control class for beermon 4 # Control class for beermon
5 # 5 #
6 # $Id: Control.py,v 1.2 2007/09/29 14:51:20 darius Exp $ 6 # $Id: Control.py,v 1.3 2007/10/23 01:05:21 darius Exp $
7 # 7 #
8 # Depends on: Python 2.3 (I think) 8 # Depends on: Python 2.3 (I think)
9 # 9 #
10 ############################################################################ 10 ############################################################################
11 # 11 #
33 # SUCH DAMAGE. 33 # SUCH DAMAGE.
34 # 34 #
35 ############################################################################ 35 ############################################################################
36 36
37 import threading, ConfigParser, time 37 import threading, ConfigParser, time
38
39 class OWReadError(Exception):
40 """Raised when we failed to read from a 1-wire device, could be a timeout
41 or the device is non-existent, etc"""
42 pass
43 38
44 class ThreadDied(Exception): 39 class ThreadDied(Exception):
45 """Raised when the monitor thread has died for some reason""" 40 """Raised when the monitor thread has died for some reason"""
46 pass 41 pass
47 42