Class WebApiException

All Implemented Interfaces:
Serializable

public class WebApiException extends FessSystemException
Exception thrown when web API operations encounter errors. This exception includes an HTTP status code to indicate the nature of the error.
See Also:
  • Constructor Details

    • WebApiException

      public WebApiException(int statusCode, String message, Throwable cause)
      Constructs a WebApiException with the specified status code, message, and cause.
      Parameters:
      statusCode - The HTTP status code
      message - The detail message
      cause - The cause of this exception
    • WebApiException

      public WebApiException(int statusCode, String message)
      Constructs a WebApiException with the specified status code and message.
      Parameters:
      statusCode - The HTTP status code
      message - The detail message
    • WebApiException

      public WebApiException(int statusCode, Exception e)
      Constructs a WebApiException with the specified status code and exception.
      Parameters:
      statusCode - The HTTP status code
      e - The exception that caused this WebApiException
  • Method Details

    • getStatusCode

      public int getStatusCode()
      Gets the HTTP status code associated with this exception.
      Returns:
      The HTTP status code