Package wtf :: Module config :: Class ParseError
[hide private]
[frames] | no frames]

Class ParseError

source code

              object --+                
                       |                
exceptions.BaseException --+            
                           |            
        exceptions.Exception --+        
                               |        
                           Error --+    
                                   |    
                  ConfigurationError --+
                                       |
                                      ParseError
Known Subclasses:

Parse error
Instance Methods [hide private]
 
__init__(self, filename, lineno)
Initialization
source code
 
__str__(self)
Returns a string representation of the Exception
source code

Inherited from exceptions.Exception: __new__

Inherited from exceptions.BaseException: __delattr__, __getattribute__, __getitem__, __getslice__, __reduce__, __repr__, __setattr__, __setstate__, __unicode__

Inherited from object: __format__, __hash__, __reduce_ex__, __sizeof__, __subclasshook__

Class Variables [hide private]
str _MESSAGE = 'Parse error in %(filename)r, line %(lineno)s'
The message format string
Instance Variables [hide private]
basestring filename
The name of the file where the error occured
int lineno
The line number of the error
Properties [hide private]

Inherited from exceptions.BaseException: args, message

Inherited from object: __class__

Method Details [hide private]

__init__(self, filename, lineno)
(Constructor)

source code 
Initialization
Parameters:
  • filename (basestring) - The name of the file, where the error occured
  • lineno (int) - The erroneous line number
Overrides: object.__init__

__str__(self)
(Informal representation operator)

source code 
Returns a string representation of the Exception
Overrides: object.__str__