Package SatStress :: Module SatStress :: Class NameValueFileParseError
[frames] | no frames]

Class NameValueFileParseError

source code

              object --+                
                       |                
exceptions.BaseException --+            
                           |            
        exceptions.Exception --+        
                               |        
                           Error --+    
                                   |    
                  NameValueFileError --+
                                       |
                                      NameValueFileParseError

Indicates a poorly formatted NAME=VALUE files.

Instance Methods
 
__init__(self, nvf, line)
Stores the file and line that generated the parse error.
source code
 
__str__(self)
str(x)
source code

Inherited from exceptions.Exception: __new__

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

Inherited from object: __hash__, __reduce_ex__

Properties

Inherited from exceptions.BaseException: args, message

Inherited from object: __class__

Method Details

__init__(self, nvf, line)
(Constructor)

source code 

Stores the file and line that generated the parse error.

The file object (nvf) and the contents of the poorly formed line (badline) are stored within the exception, so we can print an error message with useful debugging information to the user.

Overrides: object.__init__

__str__(self)
(Informal representation operator)

source code 

str(x)

Overrides: object.__str__
(inherited documentation)