at.ac.tuwien.infosys.rnue.helpers
Class HTTPException

java.lang.Object
  |
  +--java.lang.Throwable
        |
        +--java.lang.Exception
              |
              +--at.ac.tuwien.infosys.rnue.helpers.HTTPException
All Implemented Interfaces:
java.io.Serializable

public class HTTPException
extends java.lang.Exception

Thrown when an exceptional HTTP situation has occurred.

See Also:
Serialized Form

Constructor Summary
HTTPException(int code, java.lang.String msg)
          Constructs a new HTTPException.
 
Method Summary
 int getCode()
          Retunes the error code of this HTTP exception.
 java.lang.String getErrorDocument()
          Returns the error message including the error code and the user defined message within a HTML document.
 
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
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

HTTPException

public HTTPException(int code,
                     java.lang.String msg)
Constructs a new HTTPException.

Parameters:
code - HTTP error code.
Method Detail

getCode

public int getCode()
Retunes the error code of this HTTP exception.


getErrorDocument

public java.lang.String getErrorDocument()
Returns the error message including the error code and the user defined message within a HTML document.