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

# Source Code for Module Products.ZenEvents.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__= """Zenoss exceptions
    15
    16  Some common exceptions detected by layers close to the GUI,
    17  which can be caught by things such as dmd.error_handler()
    18  """
    19
    20
    21  from Products.ZenUtils.Exceptions import ZentinelException
    22
    23 -class ZenEventError(ZentinelException):
    24      """
    25      General problem with the event system.
    26      """
    27
    28 -class ZenBackendFailure(ZenEventError):
    29      """MySQL or ZEO backend database connection is lost.
    30      """
    31
    32 -class MySQLConnectionError(ZenEventError):
    33      """MySQL database connection is lost.
    34      """
    35
    36 -class ZenEventNotFound(ZenEventError):
    37      """
    38      Lookup of event failed
    39      """
    40
    41 -class pythonThresholdException(ZenEventError):
    42      """
    43      User-supplied threshold Python expression caused
    44      a traceback.
    45      """
    46
    47 -class rpnThresholdException(ZenEventError):
    48      """
    49      User-supplied threshold RPN expression caused
    50      a traceback.
    51      """
    52