org.openrdf.http.server
Class HTTPException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by org.openrdf.http.server.HTTPException
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
ClientHTTPException, ServerHTTPException

public class HTTPException
extends Exception

HTTP-related exception that includes the relevant HTTP status code.

Author:
Arjohn Kampman
See Also:
Serialized Form

Constructor Summary
HTTPException(int statusCode)
           
HTTPException(int statusCode, String message)
           
HTTPException(int statusCode, String message, Throwable t)
           
HTTPException(int statusCode, Throwable t)
           
 
Method Summary
 int getStatusCode()
           
protected  void setStatusCode(int statusCode)
           
 
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 statusCode)

HTTPException

public HTTPException(int statusCode,
                     String message)

HTTPException

public HTTPException(int statusCode,
                     String message,
                     Throwable t)

HTTPException

public HTTPException(int statusCode,
                     Throwable t)
Method Detail

getStatusCode

public final int getStatusCode()

setStatusCode

protected void setStatusCode(int statusCode)


Copyright © 2001-2008 Aduna. All Rights Reserved.