#NEWLINE# @ staticmethod #NEWLINE# def checkClass( obj , objectType , softCheck = False ) : #NEWLINE# #INDENT# '\n        Check if an object belongs to a particular class and raise a ValueError\n        if it does not.\n\n        :param objectType: The object to test. `\n        ' #NEWLINE# if ( not isinstance ( obj , obj ) ) : #NEWLINE# #INDENT# return Parameter . whatToDo ( ( ( ( 'Expecting object of type ' + str ( objectType ) ) + ' but received ' ) + str ( obj . __class__ ) ) , softCheck ) #NEWLINE# #UNINDENT# return True