Package pywurfl :: Module exceptions
[hide private]
[frames] | no frames]

Source Code for Module pywurfl.exceptions

 1  # pywurfl Exceptions 
 2  # Copyright (C) 2006 Armand Lynch 
 3  # 
 4  # This library is free software; you can redistribute it and/or modify it 
 5  # under the terms of the GNU Lesser General Public License as published by the 
 6  # Free Software Foundation; either version 2.1 of the License, or (at your 
 7  # option) any later version. 
 8  # 
 9  # This library is distributed in the hope that it will be useful, but WITHOUT 
10  # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS 
11  # FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more 
12  # details. 
13  # 
14  # You should have received a copy of the GNU Lesser General Public License 
15  # along with this library; if not, write to the Free Software Foundation, Inc., 
16  # 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 
17  # 
18  # Armand Lynch <lyncha@users.sourceforge.net> 
19   
20  __doc__ = \ 
21  """ 
22  Exception Classes 
23  """ 
24   
25  __author__ = "Armand Lynch <lyncha@users.sourceforge.net>" 
26  __copyright__ = "Copyright 2006, Armand Lynch" 
27  __license__ = "LGPL" 
28  __url__ = "http://wurfl.sourceforge.net/python/" 
29  __version__ = "1.0.0a" 
30   
31   
32 -class BaseException(Exception):
33 """ 34 pywurfl base exception class. 35 """ 36 pass
37 38
39 -class ExistsException(BaseException):
40 """ 41 General exception class 42 43 Raised when an operation should not continue if an object exists. 44 """
45 46
47 -class DeviceNotFound(BaseException):
48 """ 49 Device Not Found exception class 50 51 Raised when pywurfl cannot find a device by using either select_* 52 API functions. 53 """ 54 pass
55 56
57 -class ActualDeviceRootNotFound(BaseException):
58 """ 59 Actual Device Root Not Found exception class 60 61 Raised when pywurfl cannot find an actual device root by using either 62 select_* API functions. 63 """ 64 pass
65