Author: twalsh(a)redhat.com
Date: 2009-04-22 04:10:24 -0400 (Wed, 22 Apr 2009)
New Revision: 821
Modified:
trunk/connectors/connector-salesforce/src/main/java/com/metamatrix/connector/salesforce/connection/impl/ConnectionImpl.java
Log:
https://jira.jboss.org/jira/browse/TEIID-100
Modified:
trunk/connectors/connector-salesforce/src/main/java/com/metamatrix/connector/salesforce/connection/impl/ConnectionImpl.java
===================================================================
---
trunk/connectors/connector-salesforce/src/main/java/com/metamatrix/connector/salesforce/connection/impl/ConnectionImpl.java 2009-04-22
00:11:55 UTC (rev 820)
+++
trunk/connectors/connector-salesforce/src/main/java/com/metamatrix/connector/salesforce/connection/impl/ConnectionImpl.java 2009-04-22
08:10:24 UTC (rev 821)
@@ -51,6 +51,7 @@
import com.sforce.soap.partner.SoapBindingStub;
import com.sforce.soap.partner.fault.ApiFault;
import com.sforce.soap.partner.fault.UnexpectedErrorFault;
+import com.sforce.soap.partner.fault.InvalidQueryLocatorFault;
import com.sforce.soap.partner.sobject.SObject;
public class ConnectionImpl {
@@ -184,6 +185,8 @@
public QueryResult queryMore(String queryLocator) throws ConnectorException {
try {
return binding.queryMore(queryLocator);
+ } catch ( InvalidQueryLocatorFault e ) {
+ throw new ConnectorException(e.getMessage());
} catch (UnexpectedErrorFault e) {
throw new ConnectorException(e.getMessage());
} catch (ApiFault e) {