code: protected void handleDockerException(final String message, DockerException e) throws MojoFailureException {
          Optional<String> apiResponse = e.getApiResponse();
          String exceptionMessage = apiResponse.isPresent() ?
                  (message + "\nApi response:\n" + apiResponse.get()) :
                  message;
          throw new MojoFailureException(exceptionMessage, e);
      }
docs: Common method for re-throwing a {@link DockerException} as a {@link MojoFailureException} with a more specific
  error message. Extract into a common, template method in this base class to allow pre "verify" Mojos to handle
  errors differently.
  
  @param message The message for the exception
  @param e       The Docker Exception
  @throws org.apache.maven.plugin.MojoFailureException to indicate Plugin failure