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   
16  $Id: Exceptions.py,v 1.3 2003/09/25 15:04:19 edahl Exp $""" 
17   
18  __version__ = "$Revision: 1.3 $"[11:-2] 
19   
20  from Products.ZenUtils.Exceptions import ZentinelException 
21   
22 -class DataCollectorError(ZentinelException): pass
23
24 -class ObjectCreationError(DataCollectorError):
25 "failed to create a related object while appling maps" 26 pass
27
28 -class LoginFailed(DataCollectorError):
29 "Indicates a failed login to the remote device" 30 pass
31
32 -class CommandTimeout(DataCollectorError):
33 "full command response was not received before timeout was reached" 34 pass
35
36 -class StateTimeout(DataCollectorError):
37 "a timeout occured while we were waiting for some data" 38 pass 39
40 -class NoServerFound(DataCollectorError):
41 "no telnet or ssh server found on a machine at the given port" 42 pass 43
44 -class CommandNotFound(DataCollectorError):
45 "no command found to run" 46 pass 47
48 -class NoValidConnection(DataCollectorError):
49 "no valid connection found to make" 50 pass
51