code: final protected RuntimeException runtimeXIfNotClosed(RuntimeException runtimeX) throws SQLException 
      {
          if (state == State.CLOSED)
              throw createClosedException("ResultSet"); 
  
          return runtimeX;
      }
docs: @param runtimeX a RuntimeException which occurred, indicating the wrapper may be closed.
  
  @throws SQLRecoverableException if the wrapper is closed and exception mapping is disabled.
  
  @return the RuntimeException to throw if it isn't.