vertx/src/main/java/eu/internetofus/common/vertx/AbstractMain.java
/**
   * Print error log message informing that can not start the component.
   *
   * @param cause that explains why can not be started.
   */
Print error log message informing that can not start the component.
@param cause that explains why can not be started.
Print error log message informing that can not start the component . @param cause that explains why can not be started .
protected void printStartError(final Throwable cause) {
    final var msg = new StringBuilder();
    msg.append("Can not start the ");
    msg.append(this.getModuleName());
    msg.append("!\n");
    if (cause != null && !(cause instanceof ParseException)) {
      final var writter = new StringWriter();
      cause.printStackTrace(new PrintWriter(writter));
      msg.append(writter.toString());
      msg.append("\n Check the Logs to known more.");
    }
    InternalLogger.log(Level.ERROR, msg.toString());
  }
protected void printStartError ( final Throwable cause ) { final var msg = new StringBuilder ( ) ; msg . append ( "Can not start the " ) ; msg . append ( this . getModuleName ( ) ) ; msg . append ( "!\n" ) ; if ( cause != null && ! ( cause instanceof ParseException ) ) { final var writter = new StringWriter ( ) ; cause . printStackTrace ( new PrintWriter ( writter ) ) ; msg . append ( writter . toString ( ) ) ; msg . append ( "\n Check the Logs to known more." ) ; } InternalLogger . log ( Level . ERROR , msg . toString ( ) ) ; }
Print error log message informing that can not start the component.
Print error log message informing that can not start the component .