Class VirtualAttributeExecutionException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- de.hybris.platform.integrationservices.exception.IntegrationAttributeException
-
- de.hybris.platform.integrationservices.exception.IntegrationAttributeProcessingException
-
- de.hybris.platform.integrationservices.virtualattributes.VirtualAttributeExecutionException
-
- All Implemented Interfaces:
java.io.Serializable
public class VirtualAttributeExecutionException extends IntegrationAttributeProcessingException
Indicates a problem with execution of the script used in a virtual attribute configuration. This means that the attribute configuration is valid, i.e. the script is found and loaded, but the script crashed during execution. The crash may indicate a bug in the script or unexpected script parameter input, however after the script crashes at least once it becomes disabled. Therefore correcting the payload or the data and repeating the request may not be sufficient. The script may need to be re-enabled in the backoffice too. See "Autodisabling of Model-Based Scripts" in https://help.sap.com/viewer/d0224eca81e249cb821f2cdf45a82ace/2005/en-US/8bec04a386691014938a9996a977d07f.html- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description VirtualAttributeExecutionException(LogicExecutorContext c, LogicParams p, java.lang.RuntimeException e)Instantiates this message with the specified context.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description LogicExecutorContextgetExecutorContext()Retrieves context of the failedLogicExecutorLogicParamsgetScriptParameters()Retrieves parameters used by the script-
Methods inherited from class de.hybris.platform.integrationservices.exception.IntegrationAttributeException
getAttributeDescriptor, getAttributeName, getIntegrationItemCode
-
-
-
-
Constructor Detail
-
VirtualAttributeExecutionException
public VirtualAttributeExecutionException(LogicExecutorContext c, LogicParams p, java.lang.RuntimeException e)
Instantiates this message with the specified context.- Parameters:
c- context for the failed execution.p- parameters passed to the script.e- intercepted original exception, which caused this exception to be thrown.
-
-
Method Detail
-
getScriptParameters
public LogicParams getScriptParameters()
Retrieves parameters used by the script- Returns:
- parameters that were passed to the script when it failed.
-
getExecutorContext
public LogicExecutorContext getExecutorContext()
Retrieves context of the failedLogicExecutor- Returns:
- context used by the
LogicExecutorthat failed and caused this exception.
-
-