
Role::hasmessage is a simple moose role that provides a method called message that returns a string summarizing the message or event represented by an object.
this distribution also provides the role::hasmessage::errf module, which is an implementation of role::hasmessage that uses string::errf to format sprintf-like message strings. it adds a message_fmt attribute, initialized by the message argument.