/** * Returns actions that may be taken when {@link ServiceErrorID#TRANSPORT_ERROR} occurs * * @return <code>ErrorHandlingAction</code>s caused because of transport(JMS) */ protected Set<ErrorHandlingAction> getActionsForTransportError() { Set<ErrorHandlingAction> actions = new LinkedHashSet<>(); actions.add(ErrorHandlingActionFactory.createErrorHandlingAction(ErrorHandlingAction.LOG)); actions.add( ErrorHandlingActionFactory.createErrorHandlingAction(ErrorHandlingAction.STOP_SERVICE)); return actions; }
/** * Returns actions that may be taken when {@link ServiceErrorID#RESPONSE_GENERATION_ERROR} occurs * * @return <code>ErrorHandlingAction</code>s for errors during response generation */ protected Set<ErrorHandlingAction> getActionsForResponseGeneration() { Set<ErrorHandlingAction> actions = new LinkedHashSet<>(); actions.add(ErrorHandlingActionFactory.createErrorHandlingAction(ErrorHandlingAction.LOG)); actions.add( ErrorHandlingActionFactory.createErrorHandlingAction( ErrorHandlingAction.SEND_TO_ERROR_PORT)); return actions; }
/** * Returns actions that may be taken when {@link * com.fiorano.edbc.framework.service.exception.ServiceErrorID#INVALID_CONFIGURATION_ERROR} occurs * * @return <code>ErrorHandlingAction</code>s for Invalid Request */ protected Set<ErrorHandlingAction> getActionsForInvalidRequest() { Set<ErrorHandlingAction> actions = new LinkedHashSet<>(); actions.add(ErrorHandlingActionFactory.createErrorHandlingAction(ErrorHandlingAction.LOG)); actions.add( ErrorHandlingActionFactory.createErrorHandlingAction( ErrorHandlingAction.PROCESS_INVALID_REQUEST)); actions.add( ErrorHandlingActionFactory.createErrorHandlingAction( ErrorHandlingAction.SEND_TO_ERROR_PORT)); actions.add( ErrorHandlingActionFactory.createErrorHandlingAction(ErrorHandlingAction.STOP_SERVICE)); return actions; }
/** * Returns actions that may be taken when {@link ServiceErrorID#REQUEST_EXECUTION_ERROR} occurs * * @return <code>ErrorHandlingAction</code>s for errors during request execution */ protected Set<ErrorHandlingAction> getActionsForRequestExecutionError() { Set<ErrorHandlingAction> actions = new LinkedHashSet<>(); actions.add(ErrorHandlingActionFactory.createErrorHandlingAction(ErrorHandlingAction.LOG)); actions.add( ErrorHandlingActionFactory.createErrorHandlingAction(ErrorHandlingAction.RETRY_EXECUTION)); actions.add( ErrorHandlingActionFactory.createErrorHandlingAction( ErrorHandlingAction.SEND_TO_ERROR_PORT)); actions.add( ErrorHandlingActionFactory.createErrorHandlingAction(ErrorHandlingAction.STOP_SERVICE)); actions.add( ErrorHandlingActionFactory.createErrorHandlingAction( ErrorHandlingAction.THROW_ERROR_ON_WARNING)); return actions; }