Online: 14535
To throw error, we use THROW statement.
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.