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

Source Code for Module ZenModel.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   
17  $Id: Exceptions.py,v 1.2 2003/10/04 15:54:36 edahl Exp $""" 
18   
19  __version__ = "$Revision: 1.2 $"[11:-2] 
20   
21  from Products.ZenUtils.Exceptions import ZentinelException 
22   
23 -class ZenModelError(ZentinelException): pass
24
25 -class IpAddressConflict(ZenModelError):
26 """Two or more devices have the same ip""" 27
28 -class IpCatalogNotFound(ZenModelError):
29 """Can't find the Ip Catalog in the context passed"""
30
31 -class WrongSubnetError(ZenModelError):
32 pass
33
34 -class DeviceExistsError(ZenModelError):
35 """a device with this fqdn is already in the dmd"""
36
37 -class PathNotFoundError(ZenModelError):
38 """no object found in the dmd at the path given"""
39
40 -class TraceRouteGap(ZenModelError):
41 """Missing data found during traceroute."""
42 43
44 -class NoSnmp(ZenModelError):
45 """Can't open an snmp connection to the device."""
46
47 -class NoIPAddress(ZenModelError):
48 """No IP Address found for device name."""
49