se usi SqlServer, prova a gestire :

System.Data.SqlClient.SqlException