Class DockerRequestException

All Implemented Interfaces:
Serializable

public class DockerRequestException extends DockerException
See Also:
  • Field Details

    • method

      private final String method
    • uri

      private final URI uri
    • status

      private final int status
    • responseBody

      private final String responseBody
  • Constructor Details

    • DockerRequestException

      public DockerRequestException(String method, URI uri, int status, String responseBody, Throwable cause)
  • Method Details

    • method

      public String method()
    • uri

      public URI uri()
    • status

      public int status()
    • message

      @Deprecated @Nullable public String message()
      Deprecated.
      use getResponseBody() instead to avoid confusion with Throwable.getMessage().
      The response body from the HTTP response containing an error, if any.
    • getResponseBody

      @Nullable public String getResponseBody()
      The response body from the HTTP response containing an error, if any.
      Returns:
      response body or null.