What type of exception gets thrown when an oracle constraint is violated? I tried using the OracleException but it is not being caught.
ORMQueryExecutionException.
The InnerException is the OracleException. Simply catch the ORMQueryExecutionException and rethrow the inner exception.