message_callback
$sub_ref = UR::ModuleBase->message_callback($type);
UR::ModuleBase->message_callback($type, $sub_ref);

This method returns and optionally sets the subroutine that handles messages of a specific type.