what is the best way to know if an insert statement violate the unique contraint in android sqlite
in my android application my plan is to insert a punch of insert statements using `SQLiteDatabas` object   what i want is when the insert statement violates the unique constraint such that i could know in what insert statement the error happens and that insert statement dont affect the `DB`.

does any one know how to do that ? i saw  `insertWithOnConflict` and `insertOrThrow` method . can i know form the first method when a unique constraint occur ?

what is the best way to know if an insert statement violate the unique contraint in android sqlite
===

in my android application my plan is to insert a punch of insert statements using `SQLiteDatabas` object   what i want is when the insert statement violates the unique constraint such that i could know in what insert statement the error happens and that insert statement dont affect the `DB`.

does any one know how to do that ? i saw  `insertWithOnConflict` and `insertOrThrow` method . can i know form the first method when a unique constraint occur ?
