Check out this article on error handling in SQL Server 2012
http://www.simple-talk.com/sql/database-administration/handling-errors-in-sql-server-2012/
Cheers
Samitha
http://www.simple-talk.com/sql/database-administration/handling-errors-in-sql-server-2012/
Cheers
Samitha