类 DockerEngineException

java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
cn.taketoday.buildpack.platform.docker.transport.DockerEngineException
所有已实现的接口:
Serializable

public class DockerEngineException extends RuntimeException
Exception thrown when a call to the Docker API fails.
从以下版本开始:
4.0
作者:
Phillip Webb, Scott Frederick
另请参阅:
  • 字段详细资料

    • statusCode

      private final int statusCode
    • reasonPhrase

      private final String reasonPhrase
    • errors

      private final Errors errors
    • responseMessage

      private final Message responseMessage
  • 构造器详细资料

    • DockerEngineException

      public DockerEngineException(String host, URI uri, int statusCode, String reasonPhrase, Errors errors, Message responseMessage)
  • 方法详细资料

    • getStatusCode

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

      public String getReasonPhrase()
      Return the reason phrase returned by the Docker API.
      返回:
      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.
      返回:
      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.
      返回:
      the message or null
    • buildMessage

      private static String buildMessage(String host, URI uri, int statusCode, String reasonPhrase, Errors errors, Message responseMessage)