Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
I have a question regarding Dancer2 and hooks. I would like use a specific hook from Dancer::Core::Error. It's the hook after_error. And what I am trying to do is have this hook applied to all errors in my application. But I want it applied from a module that I use. In other words, if the someone uses the module, then the hook gets applied to any errors.
Anyway, I can't seem to "export" the hook from the module to the application. I read the docs, but I am still can't get it to work. Any ideas?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Dancer2 hook
by jcb (Parson) on Aug 12, 2019 at 06:35 UTC | |
by Anonymous Monk on Aug 13, 2019 at 00:23 UTC | |
by Anonymous Monk on Aug 13, 2019 at 00:42 UTC | |
by Anonymous Monk on Aug 13, 2019 at 00:51 UTC | |
by Anonymous Monk on Aug 13, 2019 at 01:04 UTC | |
| |
|
Re: Dancer2 hook
by Anonymous Monk on Aug 12, 2019 at 09:37 UTC | |
by Anonymous Monk on Aug 13, 2019 at 00:15 UTC |