To throw error, we use THROW statement.
THROW
BEGIN TRY SELECT 'ITFunda'/0 END TRY BEGIN CATCH THROW END CATCH
Here, notice the BEGIN CATCH block that uses THROW statement to throw the error.
BEGIN CATCH
Write for us
Hosting Recommendations