in reply to Moose and exceptions

This question got answered in #moose on IRC, but just so that Perlmonks has the answer, here you go.

The conflict is in the Moose export &with and the Error export &with. There are a couple of solutions possible:

-stvn

Replies are listed 'Best First'.
Re^2: Moose and exceptions
by glide (Pilgrim) on Mar 20, 2008 at 11:54 UTC

    It's nice to see the flexibility of the Moose. But, imho, that kind of change in the interface, will affect the maintainability of the code.

    Probably the use of the Exception::Class will be a better approach.

    many thanks
      It's nice to see the flexibility of the Moose.

      I can take no credit, we are simply riding on the shoulders of Sub::Exporter.

      But, imho, that kind of change in the interface, will affect the maintainability of the code.

      I completely agree, this is a case of "just cause you can do it, doesn't mean you should".

      -stvn