Package Products :: Package ZenEvents :: Module Exceptions
[hide private]
[frames] | no frames]

Source Code for Module Products.ZenEvents.Exceptions

 1  ############################################################################## 
 2  #  
 3  # Copyright (C) Zenoss, Inc. 2007, all rights reserved. 
 4  #  
 5  # This content is made available according to terms specified in 
 6  # License.zenoss under the directory where your Zenoss product is installed. 
 7  #  
 8  ############################################################################## 
 9   
10   
11  __doc__= """Zenoss exceptions 
12   
13  Some common exceptions detected by layers close to the GUI, 
14  which can be caught by things such as dmd.error_handler() 
15  """ 
16   
17   
18  from Products.ZenUtils.Exceptions import ZentinelException 
19   
20 -class ZenEventError(ZentinelException):
21 """ 22 General problem with the event system. 23 """
24
25 -class ZenBackendFailure(ZenEventError):
26 """MySQL or ZEO backend database connection is lost. 27 """
28
29 -class MySQLConnectionError(ZenEventError):
30 """MySQL database connection is lost. 31 """
32
33 -class ZenEventNotFound(ZenEventError):
34 """ 35 Lookup of event failed 36 """
37
38 -class pythonThresholdException(ZenEventError):
39 """ 40 User-supplied threshold Python expression caused 41 a traceback. 42 """
43
44 -class rpnThresholdException(ZenEventError):
45 """ 46 User-supplied threshold RPN expression caused 47 a traceback. 48 """
49