Login | Sign Up
ErrorKey - Search engine for Error codes and messages       Comment an error
Return to search results
 BaseException -  PYTHON
The base class for all built-in exceptions. It is not meant to be directly inherited by user-defined classes (for that use Exception). If str() or unicode() is called on an instance of this class, the representation of the argument(s) to the instance are returned or the emptry string when there were no arguments. If only a single argument is passed in, it is stored in the message attribute. If more than one argument is passed in, message is set to the empty string. These semantics are meant to reflect the fact that message is to store a text message explaining why the exception had been raised. If more data needs to be attached to the exception, attach it through arbitrary attributes on the instance. All arguments are also stored in args as a tuple, but it will eventually be deprecated and thus its use is discouraged. New in version 2.5.  Login to see more
 

You must login to post a comment.
Comment