org.apache.ace.deployment.servlet
Class AceRestException
java.lang.Object
java.lang.Throwable
java.lang.Exception
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
|
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 |
AceRestException
public AceRestException(int statusCode,
String description)
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.