Class HttpForbiddenException

All Implemented Interfaces:
Serializable

public final class HttpForbiddenException extends HttpClientErrorException
This exception corresponds to the HTTP 403 status code.
See Also:
  • Constructor Details

    • HttpForbiddenException

      public HttpForbiddenException()
      Create a HTTP exception with the status code 403 Forbidden.
    • HttpForbiddenException

      public HttpForbiddenException(String p_strMessage)
      Create a HTTP exception with the status code 403 Forbidden.
      Parameters:
      p_strMessage - An error message that can be later retrieved by the Throwable.getMessage() method.
    • HttpForbiddenException

      public HttpForbiddenException(Throwable p_cause)
      Create a HTTP exception with the status code 403 Forbidden.
      Parameters:
      p_cause - The cause that can be later retrieved by the Throwable.getCause() method.
    • HttpForbiddenException

      public HttpForbiddenException(String p_strMessage, Throwable p_cause)
      Create a HTTP exception with the status code 403 Forbidden.
      Parameters:
      p_strMessage - An error message that can be later retrieved by the Throwable.getMessage() method.
      p_cause - The cause that can be later retrieved by the Throwable.getCause() method.
  • Method Details

    • getStatus

      public int getStatus()
      Description copied from class: HttpErrorException
      Get the HTTP status associated with this error.
      Overrides:
      getStatus in class HttpErrorException
      Returns:
      The HTTP status code 403 Forbidden.