Home | Trees | Indices | Help |
---|
|
object --+ | exceptions.BaseException --+ | exceptions.Exception --+ | exceptions.StandardError --+ | NSPRError
NSPRError(error_message=None, error_code=None)
Exception object (derived from StandardException), raised when an NSS or NSPR error occurs. The error model in python-nss is anytime a NSS or NSPR C function returns an error the python-nss binding
raises a NSPRError exception.
Raised internally, there should be no need to raise this exception from with a Python program using python-nss.
The error_message is an optional string detailing the specifics of an error.
If the error_code is not passed then the current error is queried.
A NSPRError contains the following attributes:
- error_code
- The numeric NSPR or NSS error code (integer). If not passed the current NSPR or NSS error for the current thread is queried and substituted.
- error_desc
- Error description associated with error code (string).
- error_message
- Optional message with details specific to the error (string).
- errno
- Alias for error_code.
- strerr
- Alias for error_desc.
|
|||
|
|||
|
|||
Inherited from Inherited from Inherited from |
|
|
|
Home | Trees | Indices | Help |
---|
Generated by Epydoc 3.0.1 on Sat Nov 8 09:32:38 2014 | http://epydoc.sourceforge.net |