pt.digitalis.dif.controller.interfaces
Interface IDispatcherErrorHandler

All Known Implementing Classes:
AbstractControllerErrorHandler

public interface IDispatcherErrorHandler

Defines an error handler for the Controller errors and resulting actions

Author:
Pedro Viegas pviegas@digitalis.pt
Created on:
Dec 21, 2007

Field Summary
static String EXCEPTION
          The exception that caused the error attribute name
static String ORIGINAL_REQUEST
          The original request that caused the error attribute name
 
Method Summary
 IDIFResponse getDefaultErrorResponse(IDIFRequest originalrequest, Exception exception)
          Gets the default error response
 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
 

Field Detail

ORIGINAL_REQUEST

static final String ORIGINAL_REQUEST
The original request that caused the error attribute name

See Also:
Constant Field Values

EXCEPTION

static final String EXCEPTION
The exception that caused the error attribute name

See Also:
Constant Field Values
Method Detail

getDefaultErrorResponse

IDIFResponse getDefaultErrorResponse(IDIFRequest originalrequest,
                                     Exception exception)
Gets the default error response

Parameters:
originalrequest - the request that generated the error
exception - the exception that caused the error if available (null otherwise)
Returns:
the default error response

processException

IDIFResponse processException(IDIFRequest originalRequest,
                              BusinessFlowException businessFlowException)
Process an exception and determine the resulting action response

Parameters:
originalRequest - the request that generated the error
businessFlowException -
Returns:
the calculated response to the given error

processException

IDIFResponse processException(IDIFRequest originalRequest,
                              RuntimeException runtimeException)
Process an exception and determine the resulting action response

Parameters:
originalRequest - the request that generated the error
runtimeException -
Returns:
the calculated response to the given error

processException

IDIFResponse processException(IDIFRequest originalRequest,
                              ControllerException controllerException)
Process an exception and determine the resulting action response

Parameters:
originalRequest - the request that generated the error
controllerException -
Returns:
the calculated response to the given error


Copyright © 2014 Digitalis Informática Lda. All Rights Reserved.