DatabaseException

This is the single exception that is thrown by the entire DAF for any scenario that requires an exception to be thrown. It is expected that the DataAccessManager always pass the original cause to this Exception when it is created so that as a developer, you can interrogate the actual underlying exception for any additional attributes.


While all method signatures will throw only DatabaseException, it should be noted that any non-SQL Exception will be thrown back as a java.lang.RuntimeException. This should typically not be a problem for the consumer as the DatabaseAccessLayer is typically expected to work only with SQL related exceptions.