org.apache.ace.deployment.servlet
Class AceRestException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by org.apache.ace.deployment.servlet.AceRestException
All Implemented Interfaces:
Serializable

public class AceRestException
extends Exception

Handle common rest problems here. This can be thrown by services (unaware of how to handle it in the end) and handeled inside the catching servlet.

See Also:
Serialized Form

Constructor Summary
AceRestException(int statusCode, String description)
           
 
Method Summary
 void handleAsHttpError(javax.servlet.http.HttpServletResponse response)
          handling code where we turn this into http error.
 
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

AceRestException

public AceRestException(int statusCode,
                        String description)
Method Detail

handleAsHttpError

public void handleAsHttpError(javax.servlet.http.HttpServletResponse response)
                       throws IOException
handling code where we turn this into http error.

Parameters:
response -
Throws:
IOException


Copyright © 2009-2011 The Apache Software Foundation. All Rights Reserved.