gov.llnl.babel.url

Class HttpException


public class HttpException
extends IOException

The HttpException exception class is thrown if an HTTP communication error is detected. The exception supports the regular message string and also a method to extract the integer response code.

Constructor Summary

HttpException(int response_code, String message)
Create a new HttpException exception with the specified integer resonse code and message string.

Method Summary

int
getResponseCode()
Return the HTTP response code that caused the exception.

Constructor Details

HttpException

public HttpException(int response_code,
                     String message)
Create a new HttpException exception with the specified integer resonse code and message string.

Method Details

getResponseCode

public int getResponseCode()
Return the HTTP response code that caused the exception.