code: public void handleExceptionWrite(Exception e, List<Object> w)
  	  {
  	    final String mName = "handleExceptionWrite";
  	    
  	    if(logger.isLoggable(Level.FINER)) 
  	      logger.logp(Level.FINE, className, mName, e.getClass().getName() + "; " + this.toString());
  
  	    if (!isRetryLimitReached() && isRetryable(e))
  	    {
  	      // Retry it.  Log it.  Call the RetryListener.
  	      retryType = RETRY_WRITE;
  	      _retryException = e;
  	      ++_retryCount;
  	      logRetry(e);
  
  	      if (_retryWriteListeners != null) {
  	    	  for (RetryWriteListenerProxy retryWriteListenerProxy : _retryWriteListeners) {
  	    		  retryWriteListenerProxy.onRetryWriteException(w, e);
  				}
  	      }
  	    }
  	    else
  	    {
  	      // No retry.  Throw it back.
  	      if(logger.isLoggable(Level.FINER)) 
  	        logger.logp(Level.FINE, className, mName, "No retry.  Rethrow ", e);
  	      throw new BatchContainerRuntimeException(e);
  	    }
  	  }
docs: Handle exception from a write failure.