net.officefloor.plugin.socket.server.http
Class HttpException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by net.officefloor.plugin.socket.server.http.HttpException
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
InvalidHttpRequestException

public class HttpException
extends Exception

Root Exception of all HTTP related exceptions.

Author:
Daniel Sagenschneider
See Also:
Serialized Form

Constructor Summary
HttpException(int httpStatus)
          Initiate.
HttpException(int httpStatus, String message)
          Initiate.
HttpException(int httpStatus, String message, Throwable cause)
          Initiate.
HttpException(int httpStatus, Throwable cause)
          Initiate.
 
Method Summary
 int getHttpStatus()
          Obtains the HTTP status of this 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 httpStatus)
Initiate.

Parameters:
httpStatus - HTTP status of exception.

HttpException

public HttpException(int httpStatus,
                     String message,
                     Throwable cause)
Initiate.

Parameters:
httpStatus - HTTP status of exception.
message - Message.
cause - Cause.

HttpException

public HttpException(int httpStatus,
                     String message)
Initiate.

Parameters:
httpStatus - HTTP status of exception.
message - Message.

HttpException

public HttpException(int httpStatus,
                     Throwable cause)
Initiate.

Parameters:
httpStatus - HTTP status of exception.
cause - Cause.
Method Detail

getHttpStatus

public int getHttpStatus()
Obtains the HTTP status of this exception.

Returns:
HTTP status of this exception.


Copyright © 2005-2011. All Rights Reserved.