src/Utility/IntuitErrorHandler.php
public static function HandleErrors($response)
    {
        // To handle plain text response
        if (!self::IsValidXml($response)) {
            return;
        }

        $responseXml = simplexml_load_string($response);
        self::HandleErrorsXml($responseXml);
    }
public static function HandleErrors($response)
    {
        // To handle plain text response
        if (!self::IsValidXml($response)) {
            return;
        }

        $responseXml = simplexml_load_string($response);
        self::HandleErrorsXml($responseXml);
    }
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