Package mindsdb.utils

Class HttpException

All Implemented Interfaces:
Serializable

public class HttpException extends RuntimeException
Custom exception to handle HTTP errors.
See Also:
  • Constructor Details

    • HttpException

      public HttpException(int statusCode, String responseBody)
      Constructs a new HttpException with the specified status code and response body.
      Parameters:
      statusCode - the HTTP status code
      responseBody - the response body
  • Method Details

    • getStatusCode

      public int getStatusCode()
      Returns the HTTP status code.
      Returns:
      the HTTP status code
    • getResponseBody

      public String getResponseBody()
      Returns the response body.
      Returns:
      the response body