uk.org.ury.server.exceptions
Class HandlingException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by uk.org.ury.server.exceptions.HandlingException
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
BadRequestException, HandleFailureException, HandlerNotFoundException, HandlerSetupFailureException, NotAHandlerException

public class HandlingException
extends java.lang.Exception

Generic exception thrown when the server cannot handle a request.

Author:
Matt Windsor
See Also:
Serialized Form

Constructor Summary
HandlingException(java.lang.String string)
          Construct a HandlingException with a reason.
HandlingException(java.lang.String string, java.lang.Throwable cause)
          Construct a HandlingException with a reason and a cause to chain.
 
Method Summary
 
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

HandlingException

public HandlingException(java.lang.String string)
Construct a HandlingException with a reason.

Parameters:
string - The reason to present.

HandlingException

public HandlingException(java.lang.String string,
                         java.lang.Throwable cause)
Construct a HandlingException with a reason and a cause to chain.

Parameters:
string - The reason to present.
cause - The thrown cause that this exception should wrap.