There is only one DbException for generic db exceptions.But what if I want to write custom messages for particular SQLIntegrityConstraintViolationException exception because DbExcpetion is generic.
How to know whether it's SQLIntegrityConstraintViolationException or some other dbconnection exceptions or some other.
There is only one DbException for generic db exceptions.But what if I want to write custom messages for particular SQLIntegrityConstraintViolationException exception because DbExcpetion is generic.
How to know whether it's SQLIntegrityConstraintViolationException or some other dbconnection exceptions or some other.
Please help me....