* contextual information, including the root cause. Allowing unchecked exceptions to pass through would
* prevent valuable feedback in the log or response.
*/
} catch ( Throwable ex ) {
ActionDefinition actionDefinition = new ActionDefinition( (Element) actionDef.getNode(), null );
throw new ActionValidationException( Messages.getInstance().getErrorString(
"RuntimeContext.ERROR_0009_COULD_NOT_CREATE_COMPONENT", actionDef.getComponentName().trim() ), ex, //$NON-NLS-1$
session.getName(), instanceId, getActionSequence().getSequenceName(), actionDefinition.getDescription(),
actionDefinition.getComponentName() );
}
int validateResult = IRuntimeContext.RUNTIME_CONTEXT_VALIDATE_OK;
try {
validateResult = component.validate();
/*
* We need to catch checked and unchecked exceptions here so we can create an ActionSequeceException with
* contextual information, including the root cause. Allowing unchecked exceptions to pass through would
* prevent valuable feedback in the log or response.
*/
} catch ( Throwable t ) {
throw new ActionValidationException( Messages.getInstance().getErrorString(
"RuntimeContext.ERROR_0035_ACTION_VALIDATION_FAILED" ), t, //$NON-NLS-1$
session.getName(), instanceId, getActionSequence().getSequenceName(), component.getActionDefinition() );
}
if ( validateResult != IRuntimeContext.RUNTIME_CONTEXT_VALIDATE_OK ) {
throw new ActionValidationException( Messages.getInstance().getErrorString(
"RuntimeContext.ERROR_0035_ACTION_VALIDATION_FAILED" ), //$NON-NLS-1$
session.getName(), instanceId, getActionSequence().getSequenceName(), component.getActionDefinition() );
}
paramManager.addOutputParameters( actionDef );