Class HttpRequestException

java.lang.Object
java.lang.Throwable
java.lang.Exception
java.io.IOException
io.github.ascopes.protobufmavenplugin.utils.HttpRequestException
All Implemented Interfaces:
Serializable

public final class HttpRequestException extends IOException
Exception raised if HTTP request fails
Since:
3.10.2
Author:
Ilja Kanstanczuk
See Also:
  • Constructor Details

    • HttpRequestException

      public HttpRequestException(String message, int statusCode, @Nullable String correlationId, @Nullable String requestId, @Nullable String wwwAuthenticate, @Nullable String proxyAuthenticate, @Nullable String responseBody)
  • Method Details

    • fromHttpResponse

      public static HttpRequestException fromHttpResponse(HttpResponse<InputStream> response)
    • getStatusCode

      public int getStatusCode()
    • getCorrelationId

      public @Nullable String getCorrelationId()
    • getRequestId

      public @Nullable String getRequestId()
    • getWwwAuthenticate

      public @Nullable String getWwwAuthenticate()
    • getProxyAuthenticate

      public @Nullable String getProxyAuthenticate()
    • getResponseBody

      public @Nullable String getResponseBody()
    • toString

      public String toString()
      Overrides:
      toString in class Throwable