#NEWLINE# def __init__( self , statement , params , orig , connection_invalidated = False ) : #NEWLINE# #INDENT# try : #NEWLINE# #INDENT# text = str ( orig ) #NEWLINE# #UNINDENT# except Exception as e : #NEWLINE# #INDENT# text = ( 'Error in str() of DB-API-generated exception: ' + str ( e ) ) #NEWLINE# #UNINDENT# StatementError . __init__ ( self , ( '(%s.%s) %s' % ( text . __class__ . __module__ , orig . __class__ . __name__ , text ) ) , statement , params , orig ) #NEWLINE# self . connection_invalidated = connection_invalidated