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

# Source Code for Module Products.ZenModel.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
    13
    14  $Id: Exceptions.py,v 1.2 2003/10/04 15:54:36 edahl Exp $"""
    15
    16  __version__ = "$Revision: 1.2 $"[11:-2]
    17
    18  from Products.ZenUtils.Exceptions import ZentinelException
    19
    20 -class ZenModelError(ZentinelException): pass
    21
    22 -class IpAddressConflict(ZenModelError):
    23      """Two or more devices have the same ip"""
    24
    25 -class IpCatalogNotFound(ZenModelError):
    26      """Can't find the Ip Catalog in the context passed"""
    27
    28 -class WrongSubnetError(ZenModelError):
    29      pass
    30
    31 -class DeviceExistsError(ZenModelError):
    32      """a device with this fqdn is already in the dmd"""
    33 -    def __init__(self, msg, dev):
    34          ZenModelError.__init__(self, msg)
    35          self.dev = dev
    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