package Bar;
use Mexical::Exceptions -define => {
'Foo' => # Bar::Foo like MooseX::Types
# also defines throw_Foo()
# Generic description containing "Foo"
# any arguments cached in a %payload
{
},
};
blah blah blah:
throw_Foo(@args),
my $object = new_Foo(@args); # there's no way you actually need that.