code: protected void handleException(final Exception exception) throws MojoExecutionException {
          String message = exception.getMessage();
          if (StringUtils.isEmpty(message)) {
              message = exception.toString();
          }
          trackMojoFailure(message);
  
          if (isFailingOnError()) {
              throw new MojoExecutionException(message, exception);
          } else {
              error(message);
          }
      }
docs: region Helper methods