How to write signal function in MySQL that can be called from Triggers and Stored Functions?

Published --