My bad
For Capturing errors at runtime
To capture an error thrown by a process or API at runtime, use the following expressions in a control:
-
<PageName>.<ControlName>.<ProcessName>.Errorfor capturing a process integration error. -
<PageName>.<ControlName>.<API>.Errorfor capturing an API integration error.
based on the value of above expression, I believe you could throw custom error
I haven’t tried this from my side. So kindly try and let me know your feedback