13 lines
266 B
MySQL
13 lines
266 B
MySQL
|
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 ;
|