This plugin implements a Class to trigger notices into Wordpress Admin more easily using a shortcode.
You have to create an style in your css file with the custom class of message or the class you be .update-nag of wordpress, it's all!
do_shortcode('[san_notice message="Oops, a error have ocurred." class="error"]');