com.gargoylesoftware.htmlunit
Class FailingHttpStatusCodeException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by com.gargoylesoftware.htmlunit.FailingHttpStatusCodeException
All Implemented Interfaces:
Serializable

public class FailingHttpStatusCodeException
extends RuntimeException

An exception that is thrown when the server returns a failing status code.

Version:
$Revision: 5658 $
Author:
Mike Bowler, Marc Guillemot
See Also:
Serialized Form

Constructor Summary
FailingHttpStatusCodeException(WebResponse failingResponse)
          Creates an instance.
 
Method Summary
 WebResponse getResponse()
          Gets the failing response.
 int getStatusCode()
          Returns the failing status code.
 String getStatusMessage()
          Returns the message associated with the failing status code.
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

FailingHttpStatusCodeException

public FailingHttpStatusCodeException(WebResponse failingResponse)
Creates an instance.

Parameters:
failingResponse - the failing response
Method Detail

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


Copyright © 2002-2010 Gargoyle Software Inc.. All Rights Reserved.