HWRF  trunk@4391
Public Member Functions | Public Attributes | List of all members
produtil.sigsafety.CaughtSignal Class Reference

Base class of the exceptions thrown when a signal is caught. More...

Detailed Description

Base class of the exceptions thrown when a signal is caught.

Note that this does not derive from Exception, to ensure it is not caught accidentally. At present, it derives directly from KeyboardInterrupt, though that may be changed in the future to BaseException.

Definition at line 58 of file sigsafety.py.

Inheritance diagram for produtil.sigsafety.CaughtSignal:
produtil.sigsafety.FatalSignal produtil.sigsafety.HangupSignal

Public Member Functions

def __init__ (self, signum)
 CaughtSignal constructor. More...
 
def __str__ (self)
 A string description of this error. More...
 

Public Attributes

 signum
 The integer signal number. More...
 

Constructor & Destructor Documentation

def produtil.sigsafety.CaughtSignal.__init__ (   self,
  signum 
)

CaughtSignal constructor.

Parameters
signumthe signal that was caught (an int)

Definition at line 64 of file sigsafety.py.

Member Function Documentation

def produtil.sigsafety.CaughtSignal.__str__ (   self)

A string description of this error.

Definition at line 72 of file sigsafety.py.

Member Data Documentation

produtil.sigsafety.CaughtSignal.signum

The integer signal number.

Definition at line 68 of file sigsafety.py.

Referenced by produtil.sigsafety.CaughtSignal.__str__().


The documentation for this class was generated from the following file: