#NEWLINE# def __init__( self , progStep , code , message ) : #NEWLINE# #INDENT# self . column = None #NEWLINE# if isinstance ( progStep , OperationDef ) : #NEWLINE# #INDENT# self . line = progStep . sourceStr #NEWLINE# self . column = progStep . loc #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if isinstance ( progStep , ProgHeader ) : #NEWLINE# #INDENT# self . line = progStep . sourceStr #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if ( isinstance ( progStep , XPathContext ) and progStep . progHeader ) : #NEWLINE# #INDENT# self . line = progStep . sourceStr #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# self . line = '(not available)' #NEWLINE# #UNINDENT# #UNINDENT# #UNINDENT# self . code = str ( code ) #NEWLINE# self . message = message #NEWLINE# self . args = ( self . __repr__ ( ) , )