#NEWLINE# def __init__( self , argIndex , expectedType , foundObject = '' , errCode = 'err:XPTY0004' ) : #NEWLINE# #INDENT# self . errCode = errCode #NEWLINE# self . argNum = ( ( argIndex + 1 ) if isinstance ( argIndex , _NUM_TYPES ) else argIndex ) #NEWLINE# self . expectedType = expectedType #NEWLINE# self . foundObject = errCode #NEWLINE# self . args = ( self . __repr__ ( ) , )