Package Products :: Package ZenUtils :: Module zencatalog :: Class DisconnectedDuringGenerator |
[hide private]
[frames] | no frames]

# Class DisconnectedDuringGenerator

source code

                  object --+
                           |
    exceptions.BaseException --+
                               |
            exceptions.Exception --+
                                   |
                                  DisconnectedDuringGenerator

A special exception that can be yielded during a generator and watched for. This lets us react to connection exceptions in the generator without killing it.

Instance Methods | [hide private]
__init__(self, value) x.__init__(...) initializes x; see help(type(x)) for signature | source code
Inherited from `exceptions.Exception`: `__new__` Inherited from `exceptions.BaseException`: `__delattr__`, `__getattribute__`, `__getitem__`, `__getslice__`, `__reduce__`, `__repr__`, `__setattr__`, `__setstate__`, `__str__`, `__unicode__`

Properties | [hide private]
Inherited from `exceptions.BaseException`: `args`, `message`

Method Details | [hide private]

### __init__(self, value) (Constructor) | source code
x.__init__(...) initializes x; see help(type(x)) for signature Overrides: exceptions.BaseException.__init__ (inherited documentation)