Xdata, Aurelius, How to handle database exceptions accurately?

Hi,
I'm working on a XData server for a complex application that needs to be ported from standalone to a web-based service.
I'm not sure where and how I can catch exceptions when, for example, I execute a manager.save(entity) or manager.flush and something goes wrong. How can I do this?
Second question: How can I catch exceptions when the XdataConnectionPool no longer handle incoming calls correctly (due to an attack or stresstool with a multithreaded client)?
Thanks

XData handles all exceptions, converting them into a 4xx or 5xx JSON response to the user.

No need to do specific handling for that.

For low-level processing, there is the OnModuleException event:

1 Like