Type constraints allow custom error messages. So you could create an "IPAddress" type constraint as a subtype of "Str", and provide an error message for that.
See Moose::Util::TypeConstraints.
In reply to Re: Custom error messages and moose
by tobyink
in thread Custom error messages and moose
by neilwatson
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |