com.meterware.httpunit
Class HttpException
java.lang.Object
|
+--java.lang.Throwable
|
+--java.lang.Exception
|
+--java.lang.RuntimeException
|
+--com.meterware.httpunit.HttpException
- All Implemented Interfaces:
- Serializable
- Direct Known Subclasses:
- HttpInternalErrorException, HttpNotFoundException
- public class HttpException
- extends 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
HttpException
protected HttpException(int responseCode)
HttpException
protected HttpException(int responseCode,
String responseMessage,
URL baseURL)
getMessage
public String getMessage()
- Overrides:
getMessage
in class Throwable
getResponseCode
public int getResponseCode()
getResponseMessage
public String getResponseMessage()