src/main/java/com/hedera/hashgraph/identity/hcs/MessageListener.java
/**
   * Handles the given error internally.
   * If external error handler is defined, passes the error there, otherwise raises RuntimeException or ignores it
   * depending on a ignoreErrors flag.
   *
   * @param err The error.
   * @throws RuntimeException Runtime exception with the given error in case external error handler is not defined
   *                          and errors were not requested to be ignored.
   */
Handles the given error internally.
If external error handler is defined, passes the error there, otherwise raises RuntimeException or ignores it
depending on a ignoreErrors flag.

@param err The error.
@throws RuntimeException Runtime exception with the given error in case external error handler is not defined
and errors were not requested to be ignored.
Handles the given error internally . If external error handler is defined passes the error there otherwise raises RuntimeException or ignores it depending on a ignoreErrors flag . @param err The error . @throws RuntimeException Runtime exception with the given error in case external error handler is not defined and errors were not requested to be ignored .
protected void handleError(final Throwable err) {
    if (errorHandler != null) {
      errorHandler.accept(err);
    } else if (!ignoreErrors) {
      throw new RuntimeException(err);
    }
  }
protected void handleError ( final Throwable err ) { if ( errorHandler != null ) { errorHandler . accept ( err ) ; } else if ( ! ignoreErrors ) { throw new RuntimeException ( err ) ; } }
Handles the given error internally.
Handles the given error internally .
// Ignore Status cancelled error. It happens on unsubscribe. //TODO: Review below //    if (err instanceof StatusRuntimeException //        && Code.CANCELLED.equals(((StatusRuntimeException) err).getStatus().getCode())) { //      return; //    }