org.eaglei.repository.status
Class ErrorSendingException

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
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
BadRequestException, ConflictException, ForbiddenException, HttpStatusException, InternalServerErrorException, NotAcceptableException, NotFoundException

public abstract class ErrorSendingException
extends java.lang.RuntimeException

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
ErrorSendingException(java.lang.String message)
          Constructor for ErrorSendingException.
ErrorSendingException(java.lang.String message, java.lang.Throwable cause)
          Constructor for ErrorSendingException.
ErrorSendingException(java.lang.Throwable cause)
          Constructor for ErrorSendingException.
 
Method Summary
abstract  int getStatus()
          getStatus
 
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

ErrorSendingException

public ErrorSendingException(java.lang.String message)

Constructor for ErrorSendingException.

Parameters:
message - a String object.

ErrorSendingException

public ErrorSendingException(java.lang.String message,
                             java.lang.Throwable cause)

Constructor for ErrorSendingException.

Parameters:
message - a String object.
cause - a Throwable object.

ErrorSendingException

public ErrorSendingException(java.lang.Throwable cause)

Constructor for ErrorSendingException.

Parameters:
cause - a Throwable object.
Method Detail

getStatus

public abstract int getStatus()

getStatus

Returns:
a int.


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