Package org.htmlunit
Class FailingHttpStatusCodeException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- org.htmlunit.FailingHttpStatusCodeException
-
- All Implemented Interfaces:
java.io.Serializable
public class FailingHttpStatusCodeException extends java.lang.RuntimeException
An exception that is thrown when the server returns a failing status code.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description FailingHttpStatusCodeException(java.lang.String message, WebResponse failingResponse)
Creates an instance.FailingHttpStatusCodeException(WebResponse failingResponse)
Creates an instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description WebResponse
getResponse()
Gets the failing response.int
getStatusCode()
Returns the failing status code.java.lang.String
getStatusMessage()
Returns the message associated with the failing status code.
-
-
-
Constructor Detail
-
FailingHttpStatusCodeException
public FailingHttpStatusCodeException(WebResponse failingResponse)
Creates an instance.- Parameters:
failingResponse
- the failing response
-
FailingHttpStatusCodeException
public FailingHttpStatusCodeException(java.lang.String message, WebResponse failingResponse)
Creates an instance.- Parameters:
message
- the messagefailingResponse
- the failing response
-
-
Method Detail
-
getStatusCode
public int getStatusCode()
Returns the failing status code.- Returns:
- the code
-
getStatusMessage
public java.lang.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
-
-