@Override protected void executeFunction(boolean enableStreaming) throws StandardException, SQLException { try { super.executeFunction(enableStreaming); } catch (RuntimeException re) { throw LeadNodeExecutorMsg.handleLeadNodeRuntimeException(re); } }
@Override protected void executeFunction(boolean enableStreaming) throws StandardException, SQLException { try { super.executeFunction(enableStreaming); } catch (RuntimeException re) { throw LeadNodeExecutorMsg.handleLeadNodeRuntimeException(re); } }
public static Exception handleLeadNodeException(Exception e, String sql) { final Exception cause; if (e instanceof RuntimeException) { cause = handleLeadNodeRuntimeException((RuntimeException)e); } else { cause = e; } return GemFireXDRuntimeException.newRuntimeException("Failure for " + sql, cause); }
@Override protected void executeFunction(boolean enableStreaming) throws StandardException, SQLException { try { super.executeFunction(enableStreaming); } catch (RuntimeException re) { throw LeadNodeExecutorMsg.handleLeadNodeRuntimeException(re); } }
@Override protected void executeFunction(boolean enableStreaming) throws StandardException, SQLException { try { super.executeFunction(enableStreaming); } catch (RuntimeException re) { throw handleLeadNodeRuntimeException(re); } }
public void setup(Object res, int numMembers) throws StandardException { Collection<?> resultHolderList = (Collection<?>)res; try { Iterator<?> srhIterator = resultHolderList.iterator(); // expect at least one result (for metadata) this.firstResultHolder = (SnappyResultHolder)srhIterator.next(); } catch (RuntimeException ex) { ex = LeadNodeExecutorMsg.handleLeadNodeRuntimeException(ex); throw Misc.processFunctionException("SnappyPrepareResultSet:setup", ex, null, null); } }
public void setup(Object res, int numMembers) throws StandardException { this.resultHolderList = (Collection<?>)res; try { this.srhIterator = this.resultHolderList.iterator(); // expect at least one result (for metadata) this.currentResultHolder = this.firstResultHolder = (SnappyResultHolder)srhIterator.next(); } catch (RuntimeException ex) { ex = LeadNodeExecutorMsg.handleLeadNodeRuntimeException(ex); throw Misc.processFunctionException("SnappySelectResultSet:setup", ex, null, null); } }