def __init__(self, node, exc=None, msg='', expr=None, lineno=None):
        """TODO: docstring in public method."""
        self.node = node
        self.expr = expr
        self.msg = msg
        self.exc = exc
        self.lineno = lineno
        self.exc_info = exc_info()
        if self.exc is None and self.exc_info[0] is not None:
            self.exc = self.exc_info[0]
        if self.msg is '' and self.exc_info[1] is not None:
            self.msg = self.exc_info[1]
def __init__ ( self , node , exc = None , msg = '' , expr = None , lineno = None ) : self . node = node self . expr = expr self . msg = msg self . exc = exc self . lineno = lineno self . exc_info = exc_info ( ) if self . exc is None and self . exc_info [ 0 ] is not None : self . exc = self . exc_info [ 0 ] if self . msg is '' and self . exc_info [ 1 ] is not None : self . msg = self . exc_info [ 1 ]
TODO: docstring in public method.