on 2023 Feb 08 5:21 PM
Hi all,
I have a workflow where a user should update a product.
When setting the workflow decision to approved, an exception is thrown by me from the code (see screenshot below)

The text is standard and I am trying to overwrite it with my exception's text using ExceptionTranslationHandler, however I tried it many times but the exception was never caught.
Here is my code:
<alias name="defaultExceptionTranslationService" alias="exceptionTranslationService"/>
<bean id="defaultExceptionTranslationService"
class="com.hybris.cockpitng.service.impl.DefaultExceptionTranslationService">
<property name="defaultHandler">
<bean class="com.hybris.cockpitng.service.impl.DefaultExceptionTranslationHandler"/>
</property>
<property name="exceptionHandlers">
<list>
<bean class="com.my.package.backoffice.handlers.MyCustomTranslationHandler"/>
</list>
</property>
</bean>
Any idea?
Thanks in advance.
Request clarification before answering.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.