![]() |
botsense
3.2.0
RoadNarrows Client-Server Proxied Services Framework
|
BotSense Error Classes and Routines. More...
Classes | |
| class | BotSenseError |
Functions | |
| def | StrError (ecode) |
| def | ChkType (obj, T) |
| def | ChkReturnIsOk (rc, emsg=None) |
| def | ChkReturnIsNonNeg (rc, emsg=None) |
BotSense Error Classes and Routines.
| def BotSense.BotSenseError.ChkReturnIsNonNeg | ( | rc, | |
emsg = None |
|||
| ) |
Check if return is non-negative.
Raises a BotSenseError exception if false.
Parameters:
rc - BotSense return code.
emsg - Optional error message string.
Definition at line 117 of file BotSenseError.py.
| def BotSense.BotSenseError.ChkReturnIsOk | ( | rc, | |
emsg = None |
|||
| ) |
Check if return is ok (BsOk).
Raises a BotSenseError exception if false.
Parameters:
rc - BotSense return code.
emsg - Optional error message string.
Definition at line 103 of file BotSenseError.py.
| def BotSense.BotSenseError.ChkType | ( | obj, | |
| T | |||
| ) |
Check of oject is an instance of type T.
Raises a BotSenseError exception if false.
Parameters:
obj - Object instance.
T - Required type.
Definition at line 82 of file BotSenseError.py.
| def BotSense.BotSenseError.StrError | ( | ecode | ) |
Get the error string describing the BotSense error code.
The absolute value of the error code is taken prior retrieving the
string. An unknown or out-of-range error code will be mapped to
BS_ECODE_BADEC.
Parameters:
ecode - BotSense error code.
Return:
The appropriate error code string.
Definition at line 62 of file BotSenseError.py.
Referenced by BotSense.BotSenseError.BotSenseError.__str__().