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

13 lines
266 B
MySQL
Raw Normal View History

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 ;