CREATE PROCEDURE pro_throwException (errorCode char(5), errorMessage text)
BEGIN
SIGNAL SQLSTATE errorCode SET MESSAGE_TEXT = errorMessage;
END