code: function (e) {
                  if (e instanceof java.util.NoSuchElementException || e.message.startsWith("java.util.NoSuchElementException")) {
                      // Empty stream
                      return Promise.resolve();
                  }
                  return Promise.reject(e);
              }
docs: region gpf.interfaces.IReadableStream 
  Process error that occurred during the stream reading
  
  @param {Error} e Error coming from read
  @return {Promise} Read result replacement
  @since 0.2.4