/**
  * Check the response for any errors it might indicate. Will throw an exception if API response indicates an error.
  * Will throw an exception if it has a problem determining success or error.
  * @param string response The API response to examine
  */
 public function HandleErrors($response)
 {
     // To handle plain text response
     if (!IsValidXml($response)) {
         return;
     }
     $responseXml = simplexml_load_string($response);
     IntuitErrorHandler::HandleErrorsXml($responseXml);
 }