com.meterware.httpunit
Class HttpException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
com.meterware.httpunit.HttpException
- All Implemented Interfaces:
- java.io.Serializable
- Direct Known Subclasses:
- HttpInternalErrorException, HttpNotFoundException
public class HttpException
- extends java.lang.RuntimeException
This exception is thrown when an Http error (response code 4xx or 5xx) is detected.
- Author:
- Seth Ladd, Russell Gold
- See Also:
- Serialized Form
Constructor Summary |
protected |
HttpException(int responseCode)
|
protected |
HttpException(int responseCode,
java.lang.String responseMessage,
java.net.URL baseURL)
|
Methods inherited from class java.lang.Throwable |
fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
HttpException
protected HttpException(int responseCode)
HttpException
protected HttpException(int responseCode,
java.lang.String responseMessage,
java.net.URL baseURL)
getMessage
public java.lang.String getMessage()
- Overrides:
getMessage
in class java.lang.Throwable
getResponseCode
public int getResponseCode()
getResponseMessage
public java.lang.String getResponseMessage()