Package org.htmlunit

Class FailingHttpStatusCodeException

All Implemented Interfaces:
Serializable

public class FailingHttpStatusCodeException extends RuntimeException
An exception that is thrown when the server returns a failing status code.
See Also:
  • Constructor Details

    • FailingHttpStatusCodeException

      public FailingHttpStatusCodeException(WebResponse failingResponse)
      Creates an instance.
      Parameters:
      failingResponse - the failing response
    • FailingHttpStatusCodeException

      public FailingHttpStatusCodeException(String message, WebResponse failingResponse)
      Creates an instance.
      Parameters:
      message - the message
      failingResponse - the failing response
  • Method Details

    • getStatusCode

      public int getStatusCode()
      Returns the failing status code.
      Returns:
      the code
    • getStatusMessage

      public String getStatusMessage()
      Returns the message associated with the failing status code.
      Returns:
      the message
    • getResponse

      public WebResponse getResponse()
      Gets the failing response.
      Returns:
      the response