salix/db/routines/util/procedures/throw.sql

13 lines
266 B
SQL

DELIMITER $$
CREATE OR REPLACE DEFINER=`root`@`localhost` PROCEDURE `util`.`throw`(vMessage CHAR(55))
BEGIN
/**
* Throws a user-defined exception.
*
* @param vMessage The error message
*/
SIGNAL SQLSTATE '45000'
SET MESSAGE_TEXT = vMessage;
END$$
DELIMITER ;