allow parameterized types to customize their messages
authorBrian Phillips <bphillips@digitalriver.com>
Tue, 2 Aug 2011 13:22:54 +0000 (08:22 -0500)
committerBrian Phillips <bphillips@digitalriver.com>
Tue, 2 Aug 2011 13:22:54 +0000 (08:22 -0500)
commitfd197235dcb0f9db05a159a2aca0cb271c4d3c74
treeea38ec9e25745faa2911e59fc5e6d66610e2c04a
parent3782156493117ca5e929019ef2da79a84a065d88
allow parameterized types to customize their messages

The same arguments that are passed to the where block are also passed to
the message block to allow the error message to be customized.
lib/MooseX/Meta/TypeConstraint/Parameterizable.pm
t/08-custom-messages.t [new file with mode: 0644]