|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object pt.digitalis.dif.controller.AbstractControllerErrorHandler
public abstract class AbstractControllerErrorHandler
Field Summary |
---|
Fields inherited from interface pt.digitalis.dif.controller.interfaces.IDispatcherErrorHandler |
---|
EXCEPTION, ORIGINAL_REQUEST |
Constructor Summary | |
---|---|
AbstractControllerErrorHandler()
|
Method Summary | |
---|---|
protected abstract IDIFResponse |
buildDynamicErrorResponse(IDIFRequest originalrequest,
String errorStageID,
Exception exception)
Builds an error response from a stage id for error handling, with a defined handler stage (or the default one) |
protected abstract IDIFResponse |
buildStaticErrorResponse(IDIFRequest originalrequest,
Exception exception)
Builds an error response from a static resource for simple rendering for when the DIF has generated errors |
IDIFResponse |
processException(IDIFRequest originalRequest,
BusinessFlowException businessFlowException)
Process an exception and determine the resulting action response |
IDIFResponse |
processException(IDIFRequest originalRequest,
ControllerException controllerException)
Process an exception and determine the resulting action response |
IDIFResponse |
processException(IDIFRequest originalRequest,
RuntimeException runtimeException)
Process an exception and determine the resulting action response |
IDIFResponse |
responseWithContext(IDIFResponse response,
IDIFRequest originalRequest,
Exception exception)
Creates a new error request base on the original request. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface pt.digitalis.dif.controller.interfaces.IDispatcherErrorHandler |
---|
getDefaultErrorResponse |
Constructor Detail |
---|
public AbstractControllerErrorHandler()
Method Detail |
---|
protected abstract IDIFResponse buildDynamicErrorResponse(IDIFRequest originalrequest, String errorStageID, Exception exception)
originalrequest
- the original requesterrorStageID
- the error stage to redirect to. If null will redirect to the default error stageexception
- the exception launched
protected abstract IDIFResponse buildStaticErrorResponse(IDIFRequest originalrequest, Exception exception)
originalrequest
- the original requestexception
- the exception launched
public IDIFResponse processException(IDIFRequest originalRequest, BusinessFlowException businessFlowException)
IDispatcherErrorHandler
processException
in interface IDispatcherErrorHandler
originalRequest
- the request that generated the error
IDispatcherErrorHandler.processException(pt.digitalis.dif.controller.interfaces.IDIFRequest,
pt.digitalis.dif.exception.controller.BusinessFlowException)
public IDIFResponse processException(IDIFRequest originalRequest, ControllerException controllerException)
IDispatcherErrorHandler
processException
in interface IDispatcherErrorHandler
originalRequest
- the request that generated the error
IDispatcherErrorHandler.processException(pt.digitalis.dif.controller.interfaces.IDIFRequest,
pt.digitalis.dif.exception.controller.ControllerException)
public IDIFResponse processException(IDIFRequest originalRequest, RuntimeException runtimeException)
IDispatcherErrorHandler
processException
in interface IDispatcherErrorHandler
originalRequest
- the request that generated the error
IDispatcherErrorHandler.processException(pt.digitalis.dif.controller.interfaces.IDIFRequest,
java.lang.RuntimeException)
public IDIFResponse responseWithContext(IDIFResponse response, IDIFRequest originalRequest, Exception exception)
response
- the response to add the context tooriginalRequest
- the original requestexception
- the exception launched
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |