gov.llnl.babel.url
Class HttpException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.io.IOException
              extended by gov.llnl.babel.url.HttpException
All Implemented Interfaces:
java.io.Serializable

public class HttpException
extends java.io.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.

See Also:
Serialized Form

Constructor Summary
HttpException(int response_code, java.lang.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.
 
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

HttpException

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

Method Detail

getResponseCode

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