Try declaring an exit handler. Something like below. Sorry for any typos, I don't have MySql at hand at the moment
DROP PROCEDURE IF EXISTS mprocedure;
DELIMITER $$
CREATE PROCEDURE mprocedure ()
BEGIN
DECLARE EXIT HANDLER FOR SQLEXCEPTION
BEGIN
ROLLBACK;
SELECT 'An exception occurred';
END;
START TRANSACTION;
INSERT INTO `mschema`.`table1`
(`maxbudget`, `blocked`, `d_percentage`, `max discount`)
VALUES ('2250', '0', '.9', '.99');
INSERT INTO `mschema`.`table2`
(`name`,`image`,`date`,`fKey_id`)
VALUES ('jhon','jfdd', '2018-01-01 00:00:00', LAST_INSERT_ID());
COMMIT;
END;
$$
DELIMITER ;