For a table that has "unique index" constraint --- for example the table has 10 columns. One of them is PK, I add another constraint that the combination of 5 columns has to be unique. Then when I use JDBC to insert a row, if it violates this constraint, what kind exception will be thrown ? will it be a regular SQL Exception or what ?
how do I know it is caused by this particular problem when an exception is thrown ?