org.loom.exception
Interface ExceptionHandler
- All Known Implementing Classes:
- DefaultExceptionHandler
public interface ExceptionHandler
Translates an application-produced Exception into one that can be handled by Loom
handle
void handle(LoomServletRequest request,
LoomServletResponse response,
java.lang.Throwable exception)
throws java.io.IOException,
javax.servlet.ServletException
- Throws:
java.io.IOException
javax.servlet.ServletException
redirectWithErrors
void redirectWithErrors(LoomServletRequest request,
LoomServletResponse response)
throws java.io.IOException,
javax.servlet.ServletException
- Redirect to the source form page (extracted using the REFERER header). This method is invoked
if the request cannot be processed due to
user-introduced errors (such as conversion or validation errors). The request gets redirected to
the source page, storing the current request data and error messages in the flash context to be
restored later.
- Throws:
javax.servlet.ServletException
UnhandledValidationErrorsException
- if the source page cannot be identified
java.io.IOException