#NEWLINE# def _parse_integer( value ) : #NEWLINE# #INDENT# '\n    :param value: The string to parse\n    :type value: str\n    :returns: The parsed value\n    :rtype: int\n    ' #NEWLINE# try : #NEWLINE# #INDENT# return ( None if ( value == 'null' ) else int ( value ) ) #NEWLINE# #UNINDENT# except ValueError as error : #NEWLINE# #INDENT# logger . exception ( 'Error parsing value as a JSON integer' ) #NEWLINE# msg = 'Unable to parse {!r} as an int: {}' . format ( value , error ) #NEWLINE# raise DCOSException ( msg )