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

Source Code for Module DataCollector.Exceptions

 1  ########################################################################### 
 2  # 
 3  # This program is part of Zenoss Core, an open source monitoring platform. 
 4  # Copyright (C) 2007, Zenoss Inc. 
 5  # 
 6  # This program is free software; you can redistribute it and/or modify it 
 7  # under the terms of the GNU General Public License version 2 as published by 
 8  # the Free Software Foundation. 
 9  # 
10  # For complete information please visit: http://www.zenoss.com/oss/ 
11  # 
12  ########################################################################### 
13   
14  __doc__="""Exceptions 
15  Common exceptions for data collectors 
16  """ 
17   
18  from Products.ZenUtils.Exceptions import ZentinelException 
19   
20 -class DataCollectorError(ZentinelException): pass
21
22 -class ObjectCreationError(DataCollectorError):
23 "Failed to create a related object while appling maps" 24 pass
25
26 -class LoginFailed(DataCollectorError):
27 "Indicates a failed login to the remote device" 28 pass
29
30 -class CommandTimeout(DataCollectorError):
31 "Full command response was not received before timeout was reached" 32 pass
33
34 -class StateTimeout(DataCollectorError):
35 "A timeout occured while we were waiting for some data" 36 pass 37
38 -class NoServerFound(DataCollectorError):
39 "No telnet or ssh server found on a machine at the given port" 40 pass 41
42 -class CommandNotFound(DataCollectorError):
43 "No command found to run" 44 pass 45
46 -class NoValidConnection(DataCollectorError):
47 "No valid connection found to make" 48 pass
49