That makes alot of sense. This could be solved through betting tooling also. It would be very easy to write an IDE template to generate that exception.
Thanks for the clarity.
AFAIR the reason is that since we are supporting different databinding frameworks, it is not always possible to generate a class that extends exception. The databinding tools only look at the schema and hence have no idea which elements are targeted towards exceptions. You can definitely tweak the ADB framework but it will be harder (if not impossible) to achieve this across all the other frameworks (such as XMLBeans, Jaxb , Jibx etc)
