public void onFailure(int statusCode,Header[] headers,byte[] responseBody,Throwable error){
  try {
    String response=responseBody == null ? null : new String(responseBody,getCharset());
    onFailure(statusCode,headers,error,response);
  }
 catch (  UnsupportedEncodingException e) {
    Log.e(LOG_TAG,e.toString());
    onFailure(statusCode,headers,e,null);
  }
}

public void onFailure ( int statusCode , Header [ ] headers , byte [ ] responseBody , Throwable error ) { try { String response = responseBody == null ? null : new String ( responseBody , getCharset ( ) ) ; onFailure ( statusCode , headers , error , response ) ; } catch ( UnsupportedEncodingException e ) { Log . e ( LOG_TAG , e . toString ( ) ) ; onFailure ( statusCode , headers , e , null ) ; } }
fired when a request fails to complete , override to handle in your own code
