Hi, Frans. I was thinking it would be of great value if you would be willing to create custom exceptions that gave us more specific information regarding SQL errors that occur in the process of executing queries.
Examples:
ORMFieldNotNullableException - Thrown when attempting to perform an Insert or Update without a required field. Includes the name of the violated field.
ORMConstraintViolation - Thrown for a constraint violation. Includes the name of the constraint that was violated.
I know this will be a bit ugly as SQL itself doesn't give you specific error codes (I don't know about Oracle), but since the message texts themselves are consistent perhaps it could still be possible.
This would be of tremendous benefit, as identifying the specific problem will go a long way towards communicating back the issue to the user. Thanks for the consideration.
Jeff...