'Convert an API error to a LinodeException instance
:keyword error: JSON object containing ``ERRORCODE`` and
``ERRORMESSAGE``
:type error: dict'

def _make_excp(self, error):

    if (('ERRORCODE' not in error) or ('ERRORMESSAGE' not in error)):
        return None
    if (error['ERRORCODE'] == 4):
        return InvalidCredsError(error['ERRORMESSAGE'])
    return LinodeException(error['ERRORCODE'], error['ERRORMESSAGE'])
