How to get specific error message when using Custom Validation

We use Custom Validation (by implment ICustomCondition, ICustomConditionFactory) for validating some fields. But when validation fails, Dataseriver throws an exception like this:
image
it is also sent to client then client dispatches Activity/ERROR with the same content.
image

We want to get a specific message or ErrorCode only to handle showing our notification error message. How can we do this?

Hi @anh-round-summit ,

Currently this is not possible as there is only one implementation for exception mapping for all validation exceptions. Please create a ticket and we will implement extension point to support this.

This answer is valid for DS in versions 30.1 - 35.0