Package org.htmlunit
Class FailingHttpStatusCodeException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.htmlunit.FailingHttpStatusCodeException
- All Implemented Interfaces:
- Serializable
An exception that is thrown when the server returns a failing status code.
- See Also:
- 
Constructor SummaryConstructorsConstructorDescriptionFailingHttpStatusCodeException(String message, WebResponse failingResponse) Creates an instance.FailingHttpStatusCodeException(WebResponse failingResponse) Creates an instance.
- 
Method SummaryModifier and TypeMethodDescriptionGets the failing response.intReturns the failing status code.Returns the message associated with the failing status code.Methods inherited from class java.lang.ThrowableaddSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
- 
Constructor Details- 
FailingHttpStatusCodeExceptionCreates an instance.- Parameters:
- failingResponse- the failing response
 
- 
FailingHttpStatusCodeExceptionCreates an instance.- Parameters:
- message- the message
- failingResponse- the failing response
 
 
- 
- 
Method Details- 
getStatusCodepublic int getStatusCode()Returns the failing status code.- Returns:
- the code
 
- 
getStatusMessageReturns the message associated with the failing status code.- Returns:
- the message
 
- 
getResponseGets the failing response.- Returns:
- the response
 
 
-