Hello,
Unfortunately, there is nothing inside of SQL Anywhere to allow you to
specify a top-level exception handler that will be called on any
native database exception. I do understand why this would be useful
(especially in a web context), and I have passed this idea on to the
appropriate engineers. Thank you for the feedback.
- Eric