botsense  3.2.0
RoadNarrows Client-Server Proxied Services Framework
BotSense.BotSenseError.BotSenseError Class Reference
Inheritance diagram for BotSense.BotSenseError.BotSenseError:

Public Member Functions

def __init__ (self, ecode, emsg=None)
 
def __str__ (self)
 

Public Attributes

 ecode
  BotSense error code
 
 emsg
 error message
 

Detailed Description

BotSense Exception Class. 

Definition at line 134 of file BotSenseError.py.

Constructor & Destructor Documentation

def BotSense.BotSenseError.BotSenseError.__init__ (   self,
  ecode,
  emsg = None 
)
Raise exception.

Parameters:
  ecode  - BotSense error code.
  msg    - Exception message string.

Definition at line 138 of file BotSenseError.py.

138  def __init__(self, ecode, emsg=None):
139  """ Raise exception.
140 
141  Parameters:
142  ecode - BotSense error code.
143  msg - Exception message string.
144  """
145  ## \h_botsense error code
146  self.ecode = ecode
147 
148  ## error message
149  self.emsg = emsg
def __init__(self, ecode, emsg=None)
ecode
<b><i>BotSense</i></b> error code

Member Function Documentation

def BotSense.BotSenseError.BotSenseError.__str__ (   self)
String representation. 

Definition at line 153 of file BotSenseError.py.

References BotSense.BotSenseError.BotSenseError.ecode, BotSense.BotSenseError.BotSenseError.emsg, and BotSense.BotSenseError.StrError().

153  def __str__(self):
154  """ String representation. """
155  s = "%s(ecode=%d)" % (StrError(self.ecode), self.ecode)
156  if self.emsg:
157  s += ": %s" % (self.emsg)
158  return s
ecode
<b><i>BotSense</i></b> error code

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