How are exceptions exposed in JDX ORM?

JDX uses checked exception class JDXException to report any problems in the ORM layer. JDXSQLException is a subclass of JDXException and is used to encapsulate and report the original SQL exception (SQLException) from the database or the JDBC driver layer. The exceptions may be chained as appropriate.

For the SQLQuery() and SQLStatement() methods, if an error is encountered, JDX appends the original SQL statement to the exception message.

JDXException class is very useful especially during the app development phase because it encapsulates and reports any mapping specification related errors as well as any SQL exceptions. Handling and reporting those errors help in quickly identifying and fixing the underlying issues. That may also be very useful in diagnosis of problems with a deployed app.
This discussion has been closed.