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

Source Code for Module Products.DataCollector.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__="""Exceptions 
12  Common exceptions for data collectors 
13  """ 
14   
15  from Products.ZenUtils.Exceptions import ZentinelException 
16   
17 -class DataCollectorError(ZentinelException): pass
18
19 -class ObjectCreationError(DataCollectorError):
20 "Failed to create a related object while appling maps" 21 pass
22
23 -class LoginFailed(DataCollectorError):
24 "Indicates a failed login to the remote device" 25 pass
26
27 -class CommandTimeout(DataCollectorError):
28 "Full command response was not received before timeout was reached" 29 pass
30
31 -class StateTimeout(DataCollectorError):
32 "A timeout occured while we were waiting for some data" 33 pass 34
35 -class NoServerFound(DataCollectorError):
36 "No telnet or ssh server found on a machine at the given port" 37 pass 38
39 -class CommandNotFound(DataCollectorError):
40 "No command found to run" 41 pass 42
43 -class NoValidConnection(DataCollectorError):
44 "No valid connection found to make" 45 pass
46