Take a look at the Moose::Error stuff, all you need is in there.

I also recommend looking at Try::Tiny and Throwable for the exceptions themselves.

- Stevan

On Sep 2, 2009, at 9:52 AM, Rolf Schaufelberger wrote:

How can I make Mosse throw an user defined Exception (i.E from Exception::Class) when an attribute has a wrong type (or missing, etc) ?

Make a new meta class for my attributes , and tell Moose to use that one ?

Regards
Rolf Schaufelberger







Reply via email to