Raises an exception. The command will terminate query execution, abort current transaction and will send a user defined error message back to the client. The command can be used in a SQL batch and inside a stored procedure.
Syntax
RAISE EXCEPTION string