Class PrepareAgentErrorResponse

All Implemented Interfaces:
Component, DestructableComponent, InitializableComponent, ProfileAction, Aware, MessageSource, MessageSourceAware, Action

public class PrepareAgentErrorResponse extends AbstractAgentRequestAction
A profile action to encode the current event (typically an error) into an agent response in an AgentRequestContext.

If no event can be identified a generic event of EventIds.MESSAGE_PROC_ERROR is used.

Event:
EventIds.PROCEED_EVENT_ID, EventIds.INVALID_PROFILE_CTX
Precondition:
AgentRequestContext.getOutput().isstruct()