java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.springframework.boot.buildpack.platform.docker.transport.DockerEngineException
All Implemented Interfaces:
Serializable

public class DockerEngineException extends RuntimeException
Exception thrown when a call to the Docker API fails.
Since:
2.3.0
Author:
Phillip Webb, Scott Frederick
See Also:
  • Constructor Details

    • DockerEngineException

      public DockerEngineException(String host, URI uri, int statusCode, String reasonPhrase, Errors errors, Message responseMessage)
  • Method Details

    • getStatusCode

      public int getStatusCode()
      Return the status code returned by the Docker API.
      Returns:
      the statusCode the status code
    • getReasonPhrase

      public String getReasonPhrase()
      Return the reason phrase returned by the Docker API.
      Returns:
      the reasonPhrase
    • getErrors

      public Errors getErrors()
      Return the errors from the body of the Docker API response, or null if the errors JSON could not be read.
      Returns:
      the errors or null
    • getResponseMessage

      public Message getResponseMessage()
      Return the message from the body of the Docker API response, or null if the message JSON could not be read.
      Returns:
      the message or null