I wrote fairly extensive Perl modules and scripts using Perl SVN :: Client bindings , etc. Since SVN :: Client calls are in the back of the module, I redefined the default error handling.
So far I have done this by setting
$SVN::Error::handler = undef;
as described in the docs , but this makes the individual calls a bit messy, because you have to remember that each call is SVN::Clientin the context of the list and check the first value for errors.
I would like to switch to using the error handler that I would write; but $SVN::Error::handleris global, so I see no way that my callback can determine where the error came from and which object to set the error code for.
I was wondering if I can use the pool for this purpose: so far I have ignored the pools as irrelevant to working in Perl, but if I call the method SVN::Clientwith the pool I created, will the SVN :: Error object be created in that same bullet?
Does anyone have any knowledge or experience that is on this?
source
share