org.eaglei.repository.status
Class HttpStatusException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by org.eaglei.repository.status.ErrorSendingException
                  extended by org.eaglei.repository.status.HttpStatusException
All Implemented Interfaces:
java.io.Serializable

public class HttpStatusException
extends ErrorSendingException

Superclass for exceptions that get turned into HTTP status codes in the response by a servlet wrapper class. Since it is a subclass of RuntimeException, methods can throw without bothering to declare it. These are picked up by the RepositoryServlet.service() wrapper and, if possible, turned into status codes in the HTTP response.

Version:
$Id: $
Author:
lcs
See Also:
Serialized Form

Constructor Summary
HttpStatusException(int status, java.lang.String message)
          Constructor for HttpStatusException.
 
Method Summary
 int getStatus()
          Getter for the field status.
 
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

HttpStatusException

public HttpStatusException(int status,
                           java.lang.String message)

Constructor for HttpStatusException.

Parameters:
status - a int.
message - a String object.
Method Detail

getStatus

public int getStatus()

Getter for the field status.

Specified by:
getStatus in class ErrorSendingException
Returns:
a int.


Copyright © 2009-2011 Eagle-I. All Rights Reserved.