src/main/java/com/hedera/hashgraph/identity/hcs/MessageTransaction.java
/**
   * Handles the error.
   * If external error handler is defined, passes the error there, otherwise raises RuntimeException.
   *
   * @param err The error.
   * @throws RuntimeException Runtime exception with the given error in case external error handler is not defined.
   */
Handles the error.
If external error handler is defined, passes the error there, otherwise raises RuntimeException.

@param err The error.
@throws RuntimeException Runtime exception with the given error in case external error handler is not defined.
Handles the error . If external error handler is defined passes the error there otherwise raises RuntimeException . @param err The error . @throws RuntimeException Runtime exception with the given error in case external error handler is not defined .
protected void handleError(final Throwable err) {
    if (errorHandler != null) {
      errorHandler.accept(err);
    } else {
      throw new RuntimeException(err);
    }
  }
protected void handleError ( final Throwable err ) { if ( errorHandler != null ) { errorHandler . accept ( err ) ; } else { throw new RuntimeException ( err ) ; } }
Handles the error.
Handles the error .
// Ignore Status cancelled error. It happens on unsubscribe. //TODO: Check this //    if (err instanceof StatusRuntimeException //        && Code.CANCELLED.equals(((StatusRuntimeException) err).getStatus().getCode())) { //      return; //    }