#NEWLINE# def _make_excp( self , error ) : #NEWLINE# #INDENT# 'Convert an API error to a LinodeException instance\n\n        @keyword error: JSON object containing C{ERRORCODE} and C{ERRORMESSAGE}\n        @type error: dict' #NEWLINE# if ( ( 'ERRORCODE' not in error ) or ( 'ERRORMESSAGE' not in error ) ) : #NEWLINE# #INDENT# return None #NEWLINE# #UNINDENT# if ( error [ 'ERRORCODE' ] == 4 ) : #NEWLINE# #INDENT# return InvalidCredsError ( error [ 'ERRORMESSAGE' ] ) #NEWLINE# #UNINDENT# return LinodeException ( error [ 'ERRORCODE' ] , error [ 'ERRORMESSAGE' ] )