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

# Source Code for Module Products.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 or (at your
     8  # option) any later version as published by 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 -    def __init__(self, msg, dev):
    37          ZenModelError.__init__(self, msg)
    38          self.dev = dev
    39
    40 -class PathNotFoundError(ZenModelError):
    41      """no object found in the dmd at the path given"""
    42
    43 -class TraceRouteGap(ZenModelError):
    44      """Missing data found during traceroute."""
    45
    46
    47 -class NoSnmp(ZenModelError):
    48      """Can't open an snmp connection to the device."""
    49
    50 -class NoIPAddress(ZenModelError):
    51      """No IP Address found for device name."""
    52