QuickBooks/WebConnector/Handlers.php
public function getLastError($obj)
	{
		//$this->_driver->log('getLastError()', $obj->ticket, QUICKBOOKS_LOG_VERBOSE);
		$this->_log('getLastError()', $obj->ticket, QUICKBOOKS_LOG_VERBOSE);

		if ($this->_driver->authCheck($obj->ticket))
		{
			$user = $this->_driver->authResolve($obj->ticket);

			$hookdata = array(
				'username' => $user,
				'ticket' => $obj->ticket,
				);
			$hookerr = '';
			$this->_callHook($obj->ticket, QUICKBOOKS_HANDLERS_HOOK_GETLASTERROR, null, null, null, null, $hookerr, null, array(), $hookdata);

			$lasterr = $this->_driver->errorLast($obj->ticket);

			return new QuickBooks_WebConnector_Result_GetLastError($lasterr);
		}

		return new QuickBooks_WebConnector_Result_GetLastError('Bad ticket.');
	}
public function getLastError($obj)
	{
		//$this->_driver->log('getLastError()', $obj->ticket, QUICKBOOKS_LOG_VERBOSE);
		$this->_log('getLastError()', $obj->ticket, QUICKBOOKS_LOG_VERBOSE);

		if ($this->_driver->authCheck($obj->ticket))
		{
			$user = $this->_driver->authResolve($obj->ticket);

			$hookdata = array(
				'username' => $user,
				'ticket' => $obj->ticket,
				);
			$hookerr = '';
			$this->_callHook($obj->ticket, QUICKBOOKS_HANDLERS_HOOK_GETLASTERROR, null, null, null, null, $hookerr, null, array(), $hookdata);

			$lasterr = $this->_driver->errorLast($obj->ticket);

			return new QuickBooks_WebConnector_Result_GetLastError($lasterr);
		}

		return new QuickBooks_WebConnector_Result_GetLastError('Bad ticket.');
	}
QuickBooks Web Connector ->getLastError() SOAP method

The stdClass object passed in as a parameter has these members:
- ->ticket		The ticket string

The returned object should have just one member, an error message
describing the last error that occured.

The following user-defined hooks are invoked:
- QUICKBOOKS_HANDLERS_HOOK_GETLASTERROR

@return QuickBooks_Result_GetLastError