Roll Your Own Base Class

package Your::Pirate::Base;
use base 'Badger::Base';

our $MESSAGES = {
    missing => "Avast! You be missin' ye old %s value.  Arrrr!",
    invalid => "Shiver me timers!  Ye be givin' a bad value for '%s'",
    denied  => "Walk the plank ye scurvy dog! There be no %s for ye!",
};
Thus Spake Andy:

If you're building a complete pirate application, then you might like to create your own pirate base class as a thin subclass of Badger::Class. Here you can define all the error (and other) messages that your modules might need to throw....