Module daemon :: Class DaemonException
[hide private]
[frames] | no frames]

Class DaemonException

source code

exceptions.Exception --+
                       |
                      DaemonException

Thrown by daemonize() when an error occurs while attempting to create a daemon. A DaemonException object always contains a single string value that contains an error message describing the problem.

Instance Methods [hide private]
 
__init__(self, errorMessage)
Create a new DaemonException.
source code
 
__str__(self)
Get a string version of the exception.
source code

Inherited from exceptions.Exception: __getitem__

Method Details [hide private]

__init__(self, errorMessage)
(Constructor)

source code 

Create a new DaemonException.

Parameters:
  • errorMessage (string) - the error message
Overrides: exceptions.Exception.__init__

__str__(self)
(Informal representation operator)

source code 

Get a string version of the exception.

Returns:
a string representing the exception
Overrides: exceptions.Exception.__str__