Package pology :: Module match :: Class ExprError

Class ExprError

              object --+        
                       |        
exceptions.BaseException --+    
                           |    
        exceptions.Exception --+
                               |
                              ExprError

Exception for errors in matching expressions.

Instance Methods
 
__init__(self, expr=None, msg=None, start=None, end=None)
Constructor.
 
__unicode__(self)
 
__str__(self)
str(x)

Inherited from exceptions.Exception: __new__

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

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

Properties

Inherited from exceptions.BaseException: args, message

Inherited from object: __class__

Method Details

__init__(self, expr=None, msg=None, start=None, end=None)
(Constructor)

 

Constructor.

All the parameters are made available as instance variables.

Parameters:
  • expr (string or None) - the complete expression that caused the problem
  • msg (string or None) - the description of the problem
  • start (int or None) - start position of the problem into the expression string
  • end (int or None) - end position of the problem
Overrides: object.__init__

__unicode__(self)

 
Overrides: exceptions.BaseException.__unicode__

__str__(self)
(Informal representation operator)

 

str(x)

Overrides: object.__str__
(inherited documentation)